-
Hello. I have a simple telegram bot. There is a group to which I write messages, and the bot takes these messages from the channel and copies them into itself. If I delete a message in the channel, the bot does not repeat this in itself. How can I implement it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Bots can't see message deletion. Perhaps as a workaround, you can reply to the message you want to delete with Now, propagating it to the other chat is a bit more involved. You'll want to store a mapping of |
Beta Was this translation helpful? Give feedback.
Bots can't see message deletion. Perhaps as a workaround, you can reply to the message you want to delete with
/delete
, and have the bot catch the update and delete the replied message and the/delete
message. This way the bot knows which message to delete.Now, propagating it to the other chat is a bit more involved. You'll want to store a mapping of
channelMessage -> chatMessage
in your database and use that to delete thechatMessage
when the bot receives/delete
in reply to achannelMessage
.