A
A
Artem Aleksandrov2021-05-06 14:07:03
Bots
Artem Aleksandrov, 2021-05-06 14:07:03

Telegram bot, how to share his messages to the whole group?

Good afternoon

I ran into a problem. The bot successfully sends messages when chatting with me 1 to 1.
It sends me a message using the link:
https://api.telegram.org/bot <token>/sendMessage?chat_id=&text=<message>

But when connected to a group, it continues to send messages only to me and the people who are subscribed to it, and not to the group.
He made it the admin of the group , he gave all the rights to send
it to @BotFather enabled / disabled: / setprivacy
The group was made both private and public.

What else can be?

I will immediately answer the question: What kind of bot? it is necessary to transfer data from a cell to a bot from an ex-fur-tree. I found a working macro on the Internet.

Perhaps you can suggest a solution to the problem?

I'm sure it's not about the macro, but about the bot settings, if it were about the macro. then by clicking on the link above " https://api ......." the message would fall both in a personal and in a group.

Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
etozhesano, 2021-05-06
@aleksandrov2906

https://api.telegram.org/bot <token>/sendMessage? chat_id= &text=<message>
You need to replace the chat_id field with the group id (group id always starts with a minus sign).
Now you have your chat_id there, so he writes to you in a personal.

Y
Yupiter7575, 2021-05-06
@yupiter7575

If you wrote the bot yourself, then you must specify the group ID.
If you found this bot, why did you write this court? This bot most likely has those. support

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question