发送时停止python电报bot中的senddocument

2024-04-25 22:24:55 发布

您现在位置:Python中文网/ 问答频道 /正文

如何在python telegram bot中停止senddocument?我尝试使用命令处理程序来停止此操作,但不起作用

bot.sendChatAction(chat_id, 'UPLOAD_DOCUMENT')
bot.sendDocument(chat_id, document=open((value), 'rb'), caption = value, timeout = 3600)

Tags: 命令id处理程序valuebotchatopendocument

热门问题