2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-30 05:48:00 +00:00

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
This commit is contained in:
GochoMugo 2017-05-26 18:08:58 +03:00
parent fe527957e0
commit 73269e79e2
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4
2 changed files with 2 additions and 2 deletions

View File

@ -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]

View File

@ -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'