Skip to content

Instantly share code, notes, and snippets.

@a2tt
Last active March 12, 2019 07:20
Show Gist options
  • Save a2tt/fd68556bf0b14e085270c272a525256b to your computer and use it in GitHub Desktop.
Save a2tt/fd68556bf0b14e085270c272a525256b to your computer and use it in GitHub Desktop.
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