main
Bandie 1 year ago
parent c30328bb95
commit c0ccb1642d
Signed by: Bandie
GPG Key ID: 843D7FA93BA46312
  1. 9
      TelegramContactProtectionBot.py

@ -1,8 +1,9 @@
#!/usr/bin/python3
from telegram import Update, Chat, ChatMember, ParseMode, ChatMemberUpdated, BotCommand
TOKEN=''
from telegram.ext import Updater, CommandHandler, ChatMemberHandler, CallbackContext, MessageHandler, Filters
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)

Loading…
Cancel
Save