davidchua / pymessenger

A Python Wrapper for the FB Messenger Bot API (Send/Receive API)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

lambsteak opened this issue · comments

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?

commented

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?