tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Question:Use SendMessage to send a message to the bot #2404

Closed prog-ape closed 1 year ago

prog-ape commented 1 year ago

Use SendMessage to send a message to the bot, the bot reply message obtained by UpdateNewMessage, the replyToMessageId and the messageId returned by SendMessage are inconsistent,how to solve?

levlam commented 1 year ago

You must handle updateMessageSendSucceeded, updateMessageSendFailed and updateDeleteMessages updates to correctly handle message sending.

prog-ape commented 1 year ago

Thank you for your help