-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fix messages and refactor code (#21)
* feat: Fix messages and refactor code 🎨 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
b43b9f2
commit de270e2
Showing
3 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class ErrorMessages: | ||
CHAT_ADMIN_REQUIRED: str = "CHAT_ADMIN_REQUIRED" | ||
CAN_NOT_REMOVE_CHAT_OWNER: str = "can't remove chat owner" | ||
USER_IS_AN_ADMIN: str = "user is an administrator of the chat" | ||
BOT_USED_IN_PRIVATE_CHAT: str = "can't ban members in private chats" | ||
NOT_ENOUGH_RIGHTS: str = "not enough rights to restrict/unrestrict chat member" | ||
|
||
|
||
class BotPermissions: | ||
CREATOR: str = "creator" | ||
ADMINISTRATOR: str = "administrator" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
pyTelegramBotAPI==3.7.3 | ||
pyTelegramBotAPI==4.4.1 | ||
python-dotenv==0.20.0 | ||
sentry-sdk==1.5.10 |