[英]Problem reading user ID to reply to message. Telegram bot with Aiogram
我正在使用iogram在Telegram上创建反馈机器人。 当机器人收到消息时,它会将它们转发给我,然后我用bot.send_message (message.reply_to_message.forward_from.id, message.text)
回复它们。 当用户在隐私设置中有转发消息的权限时,一切都很好,但如果没有,回复消息的能力就会消失。 问题是:如果用户在隐私设置中禁用了转发消息的权限,我该如何回复消息?
Customer -> Bot -> You -> Bot -> Customer
在Customer -> Bot
和Bot -> Customer
communication 中,参与者可以看到彼此。
因此,即使客户限制消息的转发,bot 仍然可以回答,因为它回答直接(未转发)消息。
对于Bot -> You -> Bot
通信,使用简单(非转发)消息。
your_tracking_id
New issue: #id{your_tracking_id)
Oleg:
Hello World
your_tracking_id
相关联的客户的消息凭据( chat.id
、 message.id
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.