1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-25 07:04:18 +00:00
royal-mifia/main.py

12 lines
287 B
Python
Raw Normal View History

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()