Syfaro / foxbot

Multiplatform bot for finding furry image sources and more!
https://t.me/FoxBot
MIT License
48 stars 6 forks source link

Recognize anonymous group messages as administrative #88

Open Syfaro opened 3 years ago

Syfaro commented 3 years ago

When performing commands that require administrative permissions, the bot attempts to validate that the sending user has administrative permissions in the chat (either through the permission cache or by calling the API). If the message was sent anonymously as the chat, the bot doesn't recognize the user as privileged (it's always from ID 1087968824). Because these anonymous messages can only be sent by admins, they should be recognized as being sent from a privileged user.