Telegram Bot : what message/user is the bot replying to? - google-apps-script

background: I'm making a Telegram Bot for a group chat, that parses messages for specific keywords, then marks a spreadsheet per those keywords, and then sends a message to show that marking was successful or not.
Now this gets confusing when multiple messages are sent to the bot at the same time - so my question is:
Question:
Is there a /sendMessage method for bots that replies to a certain message?
if not : is there a way to mention the user whom the bot is talking to?

There is a reply_to_message_id property in the sendMessage object.
Set that and the message that the bot posts should show up a s a reply to the message you received.
This will however only work if the message your bot is send is to the same chat/group that the original message came from.

Related

Not receiving any messages from my telegram bot

One of my telegram bots is not receiving any messages from anywhere/anybody/any-method.
Is there any way to config telegram bot not to receive anything? I might have done that to my that specific telegram bot long ago, as all the rest of my telegram bots are just fine.
Basically, to confirm that, I loop-call
https://api.telegram.org/botmybot_token/getUpdates
But I always get {"ok":true,"result":[]} for my that specific telegram bot, even when I'm sending numerous messages to it meanwhile, whereas all the rest of my telegram bots return normal update json just fine.
UPDATE:
So I just created two brand new bots, and for one I always get {"ok":true,"result":[]} while the other is fine. Strange.

DocuSign API creates duplicate entries for the document

enter image description here
We have used DocuSign Rest API and at times we are seeing duplicate entries against one receiver in DocuSign account under "Sent Items". Though the receiver is receiving the email once only. See attached image for reference. What does the "waiting for others" status indicates and under which scenarios this status will be generated?
waiting for others means that one or more of the signing recipients and/or certified copy recipients has not yet completed their action on the envelope.
The multiple rows in the Sent list means that you have sent the envelope more than once, you'll need to check your code to see how that is happening. I suggest that you have your code make a log entry every time your code calls the DocuSign eSignature API (and for create envelope calls, record the envelope id.)
If you can't figure out how your app is sending multiple envelopes when you expect that only one is being sent, use the API Request Logger to see what is being sent to DocuSign from your app.
Re: only one email was sent even though there were two or more envelopes:
Using the DocuSign web app, examine the envelopes that are in flight to check their recipients. It could be that the email address is incorrect in some of the cases.
Check your email tool. The two email notifications for two different DocuSign envelopes will be very similar and are collapsed by some email agents.

Gmail Add-on - Incorrectly treats message as - "Spam and suspicious messages can’t be used"

We are using a Gmail Add-on which triggers on email Open.
When an email is not from a verified sender it does not trigger and instead displays the following message
Spam and suspicious messages can’t be used for recommended content or
actions. Try searching for messages in your inbox.
Now how the add-on determines this appears to be when the sender is not verified.
I see in the below post that this is expected behaviour when the message is in SPAM but this is not the case in this scenario...
My add-on will not run on messages in the SPAM folder
This is not a spam message and our addon needs to access the email contents in order to work.
How do we override this unwanted behaviour.
You will want to review Why emails have spam warning labels, Messages from an unconfirmed sender which links to Check if your Gmail message is authenticated. Basically Gmail uses SPF and DKIM to verify that the mail server sending the email is authorised to send messages for that Domain. So you need to fix it at the point you send the emails by setting up SPF or DKIM appropriately.
If that is not possible, set up a filter via "Filter messages like this" option and set up a filter and try options such as "Never send it to Spam" and "Forward it to:" and forward it to itself.

Laravel Check the User Share Telegram Bot Link to other Users

Hi i want to develop the bot , but first i ask users to share the link of my bot to 5 other users then continue and register in my bot , i develop all sections but i cannot handle the first one, how can i detect that the use send share link to other user ?
i user laravel + talageram bot SDK to develop my bot.
i just want to know that user share the link and continue , i search in many docs and site bud i cannot find anythings that useful to me.
please help me to handle this problem in my telegram bot . thanks :)
Basically, you can't find out if your user has sent the link to others. You can only find out when the other user taps on the link and starts your bot. This can be done by Deep Linking. You should create a unique identifier for each user and add it as a query string to the special link made for the user.
Example:
https://telegram.me/my_bot?invitedFrom=user1
You have to check for invitedFrom parameter each time a user starts your bot in order to credit the referrer user.
By using above method, you will only be notified when the other user starts your bot.
However there is a trick you can do in order to see if a special message is forwarded to other users. Here are the steps:
Make a private channel.
Create a message containing your bot link.
Forward the message to your bot user.
Ask your bot user to forward the message to friends.
Check the view count of the message to know if it's seen by others.
By using this trick you can find out how many times the message containing your bot link is seen.

Keeping Email Message from Grouping into Conversation View in Gmail

I'm working on a feature for a client to send them email updates whenever a specific event occurs on their site. When the message shows up in Gmail, the messages get grouped together in conversation view even through they aren't the same conversation. It appears that this is due to the fact that Gmail groups based only on the subject. The client is adamant that we not change the subject line (don't get me started).
Does anyone know how I can disable this by sending a special header in the mail or am I out of luck?
There appears to be no way to prevent this, short of turning off conversation view (have you considered that?).
My guess is that Gmail is actually threading based on its own Thread-Topic header field, which it adds (overwriting any value you pass; it just copies the Subject field) - there's no way of telling, though, unless you can change that field after the fact. Which leads to the suggestion of writing an IMAP application to download the message, edit the headers, and re-upload it again. You'd need to investigate the feasibility of this, though.