File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,9 +31,19 @@ export enum TelegramEventTypes {
3131 WORLD_CONNECTED = 'TELEGRAM_WORLD_CONNECTED' ,
3232 WORLD_LEFT = 'TELEGRAM_WORLD_LEFT' ,
3333
34- // /start event
35- SLASH_START = 'TELEGRAM_SLASH_START' ,
36-
34+ export interface TelegramEventPayloadMap {
35+ [ TelegramEventTypes . MESSAGE_RECEIVED ] : TelegramMessageReceivedPayload ;
36+ [ TelegramEventTypes . MESSAGE_SENT ] : TelegramMessageSentPayload ;
37+ [ TelegramEventTypes . REACTION_RECEIVED ] : TelegramReactionReceivedPayload ;
38+ [ TelegramEventTypes . WORLD_JOINED ] : TelegramWorldPayload ;
39+ [ TelegramEventTypes . WORLD_CONNECTED ] : TelegramWorldPayload ;
40+ [ TelegramEventTypes . WORLD_LEFT ] : TelegramWorldPayload ;
41+ [ TelegramEventTypes . SLASH_START ] : { ctx : Context } ;
42+ [ TelegramEventTypes . ENTITY_JOINED ] : TelegramEntityPayload ;
43+ [ TelegramEventTypes . ENTITY_LEFT ] : TelegramEntityPayload ;
44+ [ TelegramEventTypes . ENTITY_UPDATED ] : TelegramEntityPayload ;
45+ [ TelegramEventTypes . INTERACTION_RECEIVED ] : TelegramReactionReceivedPayload ;
46+ }
3747 // Entity events
3848 ENTITY_JOINED = 'TELEGRAM_ENTITY_JOINED' ,
3949 ENTITY_LEFT = 'TELEGRAM_ENTITY_LEFT' ,
You can’t perform that action at this time.
0 commit comments