Created
June 10, 2017 12:36
-
-
Save Kylmakalle/0bb68ed5f83a3bfa5abf6e203c966375 to your computer and use it in GitHub Desktop.
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
if blocked.contains(users.ID == str(message.new_chat_member.id)): | |
bot.kick_chat_member(message.chat.id, message.new_chat_member.id) | |
bot.send_message(message.chat.id, '`' + message.new_chat_member.first_name + '`' + ' was blocked', | |
parse_mode='Markdown') | |
bot.send_message(me, '`' + message.new_chat_member.first_name + '`' + ' #id' + str( | |
message.new_chat_member.id) + ' was banned because of *BLOCK* in #{}'.format(message.chat.username), | |
parse_mode='Markdown') | |
blocked.remove(eids=[blocked.get(users.ID == str(message.new_chat_member.id)).eid]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment