From 73269e79e29fe51ebed20d8a15ae80a83778130f Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Fri, 26 May 2017 18:08:58 +0300 Subject: [PATCH] src/telegram: Add missing event 'video_note' References: * API Message type: https://core.telegram.org/bots/api#message * API v3 progress tracker: https://github.com/yagop/node-telegram-bot-api/issues/332 --- doc/usage.md | 2 +- src/telegram.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/usage.md b/doc/usage.md index 6d76ad3..64a6a0a 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -18,7 +18,7 @@ `new_chat_photo`, `delete_chat_photo`, `group_chat_created`, `game`, `pinned_message`, `migrate_from_chat_id`, `migrate_to_chat_id`, `channel_chat_created`, `supergroup_chat_created`, - `successful_payment`, `invoice` + `successful_payment`, `invoice`, `video_note` 1. `new_chat_participant`, `left_chat_participant` are **deprecated** 1. `callback_query`: Received a new incoming [Callback Query][callback-query] 1. `inline_query`: Received a new incoming [Inline Query][inline-query] diff --git a/src/telegram.js b/src/telegram.js index e9095d5..8ccae19 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -24,7 +24,7 @@ const _messageTypes = [ 'location', 'new_chat_members', 'left_chat_member', 'new_chat_title', 'new_chat_photo', 'delete_chat_photo', 'group_chat_created', 'game', 'pinned_message', 'migrate_from_chat_id', 'migrate_to_chat_id', 'channel_chat_created', 'supergroup_chat_created', - 'successful_payment', 'invoice' + 'successful_payment', 'invoice', 'video_note' ]; const _deprecatedMessageTypes = [ 'new_chat_participant', 'left_chat_participant'