Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending a command to a bot from a channel #120

Open
tiffass opened this issue Aug 14, 2023 · 3 comments
Open

Sending a command to a bot from a channel #120

tiffass opened this issue Aug 14, 2023 · 3 comments

Comments

@tiffass
Copy link

tiffass commented Aug 14, 2023

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

@cotestatnt
Copy link
Owner

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.

@tiffass
Copy link
Author

tiffass commented Aug 21, 2023

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.

@cotestatnt
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants