mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 13:27:44 +00:00
src/telegram: Sort the message types for less cognitive load
This commit is contained in:
parent
5490a3a6e0
commit
d082a2d7d9
@ -20,11 +20,30 @@ const pump = require('pump');
|
|||||||
const deprecate = require('depd')('node-telegram-bot-api');
|
const deprecate = require('depd')('node-telegram-bot-api');
|
||||||
|
|
||||||
const _messageTypes = [
|
const _messageTypes = [
|
||||||
'text', 'audio', 'document', 'photo', 'sticker', 'video', 'voice', 'contact',
|
'audio',
|
||||||
'location', 'new_chat_members', 'left_chat_member', 'new_chat_title',
|
'channel_chat_created',
|
||||||
'new_chat_photo', 'delete_chat_photo', 'group_chat_created', 'game', 'pinned_message',
|
'contact',
|
||||||
'migrate_from_chat_id', 'migrate_to_chat_id', 'channel_chat_created', 'supergroup_chat_created',
|
'delete_chat_photo',
|
||||||
'successful_payment', 'invoice', 'video_note'
|
'document',
|
||||||
|
'game',
|
||||||
|
'group_chat_created',
|
||||||
|
'invoice',
|
||||||
|
'left_chat_member',
|
||||||
|
'location',
|
||||||
|
'migrate_from_chat_id',
|
||||||
|
'migrate_to_chat_id',
|
||||||
|
'new_chat_members',
|
||||||
|
'new_chat_photo',
|
||||||
|
'new_chat_title',
|
||||||
|
'photo',
|
||||||
|
'pinned_message',
|
||||||
|
'sticker',
|
||||||
|
'successful_payment',
|
||||||
|
'supergroup_chat_created',
|
||||||
|
'text',
|
||||||
|
'video',
|
||||||
|
'video_note',
|
||||||
|
'voice',
|
||||||
];
|
];
|
||||||
const _deprecatedMessageTypes = [
|
const _deprecatedMessageTypes = [
|
||||||
'new_chat_participant', 'left_chat_participant'
|
'new_chat_participant', 'left_chat_participant'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user