I want to build a telegram bot for feed subscription, so the subscribers can get site update. But I need user to start chat with my bot. I'll using deep linking according to this url: https://core.telegram.org/bots#deep-linking (assuming there are 2 users)
- Show the below link to user #2 https://telegram.me/MyBot?start=$unique_code
- User #2 clicks on link and start chat with bot.
- User #2 comes back to my site and clicks on check button.
- Site makes a getUpdates request and find the chat_id that associated with the user's unique_code.
- Offset will be increased by 1.
Now there is a problem. When offset increased what about user #1 that starts chat with bot just before the user #2. If #1 clicks on check button after increasing offset by #2, the bot will not received the #1 message.
p.s. I don't want using ssl and webhook
Sorry for bad English.