Search code examples
botstelegram

telegram bot and receive bot message


I have a question about Telegram bot, I created a bot and sent some messages through sendMessage,but I couldn't receive them through getmessage,only the messages I sent myself. What can I do to receive the messages I want,thans guys.


Solution

  • getUpdates is used to receive incoming updates.

    This does not include messages send by the Bot itself.

    There is currently no API route to retrieve the messages the Bot has send, you'll need to keep track of that while calling sendMessage.