Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from telegram.ext import Updater, CommandHandler
- import telegram
- from telegram.ext import MessageHandler, Filters
- from telegram.ext import CommandHandler
- # Replace this with your Telegram Bot Token
- TOKEN = '609519037:AAGbPiLeQWYM8i0d6H-G_ylA_O3bNe71UNw'
- updater = Updater(token=TOKEN)
- dispatcher = updater.dispatcher
- bot = telegram.Bot(token=TOKEN)
- # bot.send_message(chat_id=368080575, text="I'm sorry Dave I'm afraid I can't do that.")
- messa = "https://youtu.be/KXanlLjOFh0"
- def start(bot, update):
- bot.send_message(chat_id=update.message.chat_id, text="I'm a bot, talk to me.... Helloooooo, are you there??\n" + messa)
- def list(bot,update):
- bot.send_message(chat_id=update.message.chat_id, text="Left or right arm??")
- def setaa(bot,update):
- bot.send_message(chat_id=update.message.chat_id, text="Setaa mi e bate - az sam robot")
- start_handler = CommandHandler('start', start)
- ebavka_handler = CommandHandler('gatanka', list)
- setaa_handler = CommandHandler('setaa', setaa)
- dispatcher.add_handler(start_handler)
- dispatcher.add_handler(ebavka_handler)
- dispatcher.add_handler(setaa_handler)
- updater.start_polling()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement