1
0
mirror of https://gitlab.com/MisterBiggs/multi-bot-tutorial.git synced 2025-08-05 13:01:23 +00:00

made directory structure and functions

This commit is contained in:
2019-07-11 10:45:49 -07:00
parent 83d69a7502
commit dc844dd812
5 changed files with 42 additions and 0 deletions

View File

14
telegram/telegram.py Normal file
View File

@@ -0,0 +1,14 @@
import telegram
from telegram.ext import Updater, CommandHandler
def hello(bot, update):
update.message.reply_text("Hello {}".format(update.message.from_user.first_name))
updater = Updater("YOUR TOKEN HERE")
updater.dispatcher.add_handler(CommandHandler("hello", hello))
updater.start_polling()
updater.idle()