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
v1
GochoMugo 9 years ago
parent fe527957e0
commit 73269e79e2
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4
  1. 2
      doc/usage.md
  2. 2
      src/telegram.js

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

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

Loading…
Cancel
Save