Adding a comment to the message. Telegram bot

Viewed 35

I want to send a telegram message and add a comment.

If I do:

message = bot.send_message(telegram_channel,
                           "test")

And I refer to message.id, I get the message id in the channel. But to send a comment to a post you need to know its id in the channel chat:

bot.send_message(telegram_comment,
                "another comment",
                reply_to_message_id=ids)

How can I implement this? What am I doing wrong? (PS: using pyTelegramBotAPI)

0 Answers
Related