diff --git a/main.py b/main.py new file mode 100644 index 0000000..e71641c --- /dev/null +++ b/main.py @@ -0,0 +1,12 @@ +from telegram.ext import Updater +import filemanager + +token = filemanager.readfile('telegramapi.txt') +updater = Updater(token) + + +def ping(bot, update): + bot.sendMessage(update.message.chat.id, "Pong!") + +updater.dispatcher.addTelegramCommandHandler('ping', ping) +updater.start_polling() \ No newline at end of file diff --git a/mifia.py b/mifia.py deleted file mode 100644 index ee3cb21..0000000 --- a/mifia.py +++ /dev/null @@ -1,5 +0,0 @@ -import telegram -import filemanager - -token = filemanager.readfile('telegramapi.txt') -bot = telegram.Bot(token)