Skip to content

Commit

Permalink
Add some more tg errors for gbans
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSonOfLars committed Mar 11, 2018
1 parent 92a5745 commit 7384776
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tg_bot/modules/global_bans.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def gban(bot: Bot, update: Update, args: List[str]):
pass
elif excp.message == "Need to be inviter of a user to kick it from a basic group":
pass
elif excp.message == "Chat_admin_required":
pass
else:
message.reply_text("Could not gban due to: {}".format(excp.message))
send_to_list(bot, SUDO_USERS + SUPPORT_USERS, "Could not gban due to: {}".format(excp.message))
Expand Down Expand Up @@ -167,6 +169,8 @@ def ungban(bot: Bot, update: Update, args: List[str]):
pass
elif excp.message == "Channel_private":
pass
elif excp.message == "Chat_admin_required":
pass
else:
message.reply_text("Could not un-gban due to: {}".format(excp.message))
bot.send_message(OWNER_ID, "Could not un-gban due to: {}".format(excp.message))
Expand Down

0 comments on commit 7384776

Please sign in to comment.