diff --git a/TelegramContactProtectionBot.py b/TelegramContactProtectionBot.py index d3fccde..f0bdd73 100755 --- a/TelegramContactProtectionBot.py +++ b/TelegramContactProtectionBot.py @@ -1,8 +1,9 @@ #!/usr/bin/python3 +TOKEN='' + + from telegram import Update, Chat, ChatMember, ParseMode, ChatMemberUpdated, BotCommand - from telegram.ext import Updater, CommandHandler, ChatMemberHandler, CallbackContext, MessageHandler, Filters - import telegram import logging import os.path @@ -14,8 +15,8 @@ config = {} reply_markup = None -bot = telegram.Bot(token='1733773979:AAHUhDIA4jj8hIr_Cc90bSkgJ6U4L4doTew') -updater = Updater(token='1733773979:AAHUhDIA4jj8hIr_Cc90bSkgJ6U4L4doTew', use_context=True) +bot = telegram.Bot(token=TOKEN) +updater = Updater(token=TOKEN, use_context=True) dispatcher = updater.dispatcher logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)