word_cloud_bot/func.py
机器人总动员 babc67df93 None
2021-05-05 11:12:17 +08:00

31 lines
709 B
Python

import datetime
import threading
import telegram
from telegram import InlineKeyboardMarkup, InlineKeyboardButton, ForceReply
from telegram.ext import CommandHandler, MessageHandler, Filters, ConversationHandler, CallbackQueryHandler
from config import TOKEN
import sqlite3
import time
import os
import importlib
import requests
bot = telegram.Bot(token=TOKEN)
def start(update, context):
print('进入start函数')
update.message.reply_text(
'您好!',
)
def chat_content_exec(update, context):
chat_id = update.effective_message.chat_id
print(chat_id)
start_handler = CommandHandler('start', start)
chat_content_handler = MessageHandler(Filters.text, chat_content_exec)