word_cloud_bot/main.py
机器人总动员 3a3e2bb35c None
2021-05-05 11:10:01 +08:00

15 lines
501 B
Python

from telegram.ext import Updater
from config import TOKEN
from telegram import InlineKeyboardMarkup, InlineKeyboardButton, ForceReply
from telegram.ext import CommandHandler, MessageHandler, Filters, ConversationHandler, CallbackQueryHandler
from func import start_handler, chat_content_handler
updater = Updater(token=TOKEN, use_context=True)
dispatcher = updater.dispatcher
dispatcher.add_handler(start_handler)
dispatcher.add_handler(chat_content_handler)
updater.start_polling()
updater.idle()