2
0
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:
Chris54721 2016-09-15 18:46:09 +02:00 committed by GitHub
parent bf3302a957
commit f9aa16f322

View File

@ -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);