minetest-telegram-bridge/bot/bot.py

14 lines
287 B
Python
Raw Normal View History

2019-01-22 11:17:37 +01:00
#!/usr/bin/env python3
import config
from telegram.ext import Updater, MessageHandler, Filters
def message_handling(bot, update):
pass
updater = Updater(token=config.api_key)
dispatcher = updater.dispatcher
dispatcher.add_handler(MessageHandler(Filters.text, message_handling))