davidchua / pymessenger

A Python Wrapper for the FB Messenger Bot API (Send/Receive API)
MIT License
457 stars 185 forks source link

Is there a way to send messages to multiple users (broadcast a message) at once rather than iterating over each user? #70

Open lambsteak opened 5 years ago

lambsteak commented 5 years ago

I'm using the pymessenger.bot.Bot object's send_message method right now and iterating over all the target recipient ids and calling this send_message method in each iteration. Is there an alternative way to send a message to all the required users, ie, to broadcast a message to a group of users?

davidchua commented 5 years ago

Right now we don't have a way to send multiple messages, but we could abstract it out into a send_multiple_message() method.

If you're interested, you could take a stab at it in a PR?