mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 23:24:18 +00:00
12 lines
No EOL
287 B
Python
12 lines
No EOL
287 B
Python
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() |