How can I verify that the message sent over a bot api was read by the recipient user?
Is there something like getMessageStatus or any event for this?
Related
In php telegram bot, sending message to all user is sent repeatedly to one person. That is, if there are 1000 users, 50 of them will receive messages over and over again. and nothing goes to the rest. How can I solve this?
I thought all users would be notified. and the server is sending it to the same user over and over again
I want to send the message to anybody by using his telegramid and python_telegram_bot library.
I can send the message to me by using below code but if I put other's id then I can not send the message and it says chat not found message.
updater = Updater(mybot_token, use_context=True)
updater.bot.send_message(chat_id = receiver_id, text="welcome")
I am not sure why it is only possible to send the message to me, not the others even though I puth the chat_id as their telegram_id.
Bots can only send messages to users that have already started the bot. See the Telegram Bot docs.
I have created a sample Telegram Bot. http://t.me/zOS_Telegram_bot
I am being able to send text messages to the bot. For example, check the "Testing our new Telegram Bot!!!" messages that I am being able to send to the bot. enter image description here
However, when I share the bot link http://t.me/zOS_Telegram_bot with someone else, he/she cannot see the messages. What is it that I am missing here?
Is this possible to send message to phone number not #username using telegram bot?
If answer is No, I have to say I have telegram account without #username and several days ago I got message from a Bot, how this is possible?
Any advice will be helpful.
its not possible send message to phone number or username. you can only send message by ID.
i almost try every thing.(group chat or channel) the only way, bot can send a message to the user is the user start the conversation.
i can send message in to telegram channel with:
https://api.telegram.org/bot"your token"/sendMessage?chat_id="your chat public link as #msg"&text=123
wold replaced "your token" with token
and replaced "your chat public link as #msg" with chanel name
important:
your bot must be as administrator of your chanel
I have chatId and want send messages while execute some tasks from java code. I found this explain on telegram "Bots can't initiate conversations with users. A user must either add them to a group or send them a message first. People can use telegram.me/ links or username search to find your bot." But my task works good when I use https request directly from browser. My bot perfectly answer for requests but how I can do this without user request?
I can not truly understand your case!
Anyway, your bot can send a message to a chat ID Only if the user witch blongs to the specified chat ID added your bot (send start to a bot).
and if it happened then send your message with
/sendMessage