Telegram : How to Broadcast Message

We are planning to integrate Telegram with our project. The requirement is that when some event occurs, send a notification to a set of users. I have already created a test bot with telegram. My question is, is it possible to do it with bot ie sending a message to group of users. Or are there any other method to accomplish this.

We are using PHP for our project.

Upvotes: 2

Views: 14281

Answers (2)

apadana
apadana

Reputation: 14690

The best way is add your users to a group or channel, and then have your bot send the message to that group/channel.

But if you really need to send the message to each user, you may use telegram API.

Telegram Bot method is much easier to do the job. If you ended up doing the API (not the bot method) you may want to look at https://github.com/danog/MadelineProto which makes it easier to work with telegram API using php.

Upvotes: 2

Sean Wei
Sean Wei

Reputation: 8005

Message can't send to multiple chat, even send one message pre request, there have rate limit.

You should try channel instead of private message, it support unlimited subscriber, and can post by any administrators (both human and bot).

Upvotes: 4

Related Questions