Gid*_*hal 6 telegram telegram-bot
我正在开发一个机器人,我希望用户在回复之前的消息时调用它。因此,您将使用 bot 命令回复消息。
例如
用户 1:Hello World
用户 2:(回复 Hello World)/command 测试消息
现在我只能获取命令中直接发送的文本(“测试消息”),而不能获取第一条消息(“Hello World”)。根据他们的文档,我应该能够从reply_to_message
. 但是,我在 webhook 的日志中看到的只是这个。
event: {
body: {
update_id: 5632431,
message: {
message_id: 43,
from: {
id: < my_user_id > ,
first_name: 'User 2',
username: 'user_2_username',
language_code: 'en'
},
chat: {
id: < chat_id > ,
title: < chat_name > ,
type: 'group',
all_members_are_administrators: true
},
date: 1498342725,
text: '/command test message',
entities: [{
type: 'bot_command',
offset: 0,
length: 5
}]
}
}
}
Run Code Online (Sandbox Code Playgroud)
难道我做错了什么?有人有收到回复消息的经验吗?任何帮助,将不胜感激。
归档时间: |
|
查看次数: |
10586 次 |
最近记录: |