You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I would like to implement a secure bot feature, meaning that the bot could only respond to specific channels (groups or users), I thought the best would be to add the filter inside the handleUpdate methods of the Commands class, allowing us not to call the action if the msg.chat.id does not match any of the authorized one.
Here are my questions:
Do you see a better place to add this feature ?
Where would you put the authorized groups ? in a config file ? (maybe add config to the project, but it seems overkill)
The text was updated successfully, but these errors were encountered:
Hi,
I would like to implement a secure bot feature, meaning that the bot could only respond to specific channels (groups or users), I thought the best would be to add the filter inside the handleUpdate methods of the
Commands
class, allowing us not to call the action if themsg.chat.id
does not match any of the authorized one.Here are my questions:
The text was updated successfully, but these errors were encountered: