【发布时间】:2020-09-23 00:12:36
【问题描述】:
#!/usr/bin/env python3
#-*- encoding: utf-8 -*-
from apikey import tgbottoken,authedchat
from telebot import types
import telebot,logging
bot =telebot.TeleBot(tgbottoken)
telebot.logger.setLevel(logging.DEBUG)
def extract_arg(arg):
return arg.split()[1:]
@bot.message_handler(commands=['newmail'])
def mailwithsg(msg):
cid = msg.chat.id
sendto = types.ForceReply(selective=False)
bot.send_message(cid, "Send me another word:", reply_markup=sendto)
bot.polling(none_stop=True)
使用方法并发送回复标记消息后,我应该如何获取用户的回复文本(如用户反馈)?我应该使用哪种方法?
我现在使用 pyTelegramBotAPI 作为 Python Wrapper。
【问题讨论】:
-
只收到一条正常的短信。您可以询问库开发人员。
标签: python telegram py-telegram-bot-api