mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 05:17:41 +00:00
Additional edited_message events
- edited_message_text - edited_message_caption
This commit is contained in:
parent
bf3302a957
commit
f9aa16f322
@ -124,6 +124,12 @@ class TelegramBot extends EventEmitter {
|
||||
} else if (editedMessage) {
|
||||
debug('Process Update edited_message %j', editedMessage);
|
||||
this.emit('edited_message', editedMessage);
|
||||
if (editedMessage.text) {
|
||||
this.emit('edited_message_text', editedMessage);
|
||||
}
|
||||
if (editedMessage.caption) {
|
||||
this.emit('edited_message_caption', editedMessage);
|
||||
}
|
||||
} else if (inlineQuery) {
|
||||
debug('Process Update inline_query %j', inlineQuery);
|
||||
this.emit('inline_query', inlineQuery);
|
||||
|
Loading…
x
Reference in New Issue
Block a user