Last active
March 12, 2019 07:20
-
-
Save a2tt/fd68556bf0b14e085270c272a525256b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from telegram.ext import Updater, CommandHandler | |
import telegram | |
token = 'User_Token' | |
updater = Updater(token, use_context=True) | |
dispatcher = updater.dispatcher | |
def start(update, context): | |
context.bot.send_message(chat_id=update.message.chat_id, text="안녕하세요, 봇입니다.") | |
start_handler = CommandHandler('start', start) | |
dispatcher.add_handler(start_handler) | |
updater.start_polling() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment