Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from telegram import Update, Bot
- from telegram.ext import Updater, CommandHandler, MessageHandler
- from credits import bot_token
- bot = Bot(bot_token)
- updater = Updater(bot_token, use_context=True)
- dispatcher = updater.dispatcher
- def start(update,context):
- context.bot.send_message(update.effective_chat.id, "Привет!")
- start_handler = CommandHandler('start', start)
- dispatcher.add_handler(start_handler)
- updater.start_polling()
- updater.idle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement