AsyncTelegram2 icon indicating copy to clipboard operation
AsyncTelegram2 copied to clipboard

Sending a command to a bot from a channel

Open tiffass opened this issue 10 months ago • 3 comments

Is it possible to send a command like /command to a bot from a telegram channel (not a group)?

tiffass avatar Aug 14 '23 19:08 tiffass

Hi @tiffass As you can read in this FAQ, you can read a message from a channel, but you need to add the bot to the channel.

cotestatnt avatar Aug 21 '23 06:08 cotestatnt

Hi @cotestatnt I have a bot connected to a channel and it successfully sends messages there. Now I would like to manage this bot from this same channel. I have enabled privacy mode enabled in the bot settings. But when I send him a command of the form /command@this_bot, the bot does not react to it in any way. If I just send a command to the bot, then everything is OK, I create a group and add the bot there - everything also works. But I'm interested in managing the bot from the channel.

tiffass avatar Aug 21 '23 09:08 tiffass

OK I understand your problem. The fact is that the messages received from the channels are slightly different from others. However it is not too complex to add handling of these messages; I'll edit the source and let you know.

cotestatnt avatar Aug 21 '23 10:08 cotestatnt