botman / driver-telegram

BotMan Telegram Driver
MIT License
86 stars 75 forks source link

how we could add custom generic events? #87

Open aliwesome opened 4 years ago

aliwesome commented 4 years ago

Could someone explain that how I can add custom events on this driver? like the array that was in TelegramDriver class

const GENERIC_EVENTS = [ 'new_chat_members', 'left_chat_member', 'new_chat_title', 'new_chat_photo', 'group_chat_created' ];

and on the other hand I have another question about hasMatchingEvent() function, how can I refer to this function in my CustomDriver class?