ClientEvents
interfaceMap of every event the can emit to its listener arguments. Message-like updates are delivered as rich structures; the rest carry the raw, fully typed Bot API objects (reachable and self-documenting via the generated types).
Declaration
interface ClientEvents Properties
businessConnection: [connection: T.BusinessConnection];businessMessage: [message: Message];callbackQuery: [query: CallbackQuery];channelPost: [message: Message];chatBoost: [boost: T.ChatBoostUpdated];chatJoinRequest: [request: T.ChatJoinRequest];chatMember: [update: T.ChatMemberUpdated];chosenInlineResult: [result: T.ChosenInlineResult];deletedBusinessMessages: [messages: T.BusinessMessagesDeleted];editedBusinessMessage: [message: Message];editedChannelPost: [message: Message];editedMessage: [message: Message];guestMessage: [message: Message];inlineQuery: [query: InlineQuery];managedBot: [update: T.ManagedBotUpdated];messageReaction: [reaction: T.MessageReactionUpdated];messageReactionCount: [reaction: T.MessageReactionCountUpdated];myChatMember: [update: T.ChatMemberUpdated];pollAnswer: [answer: T.PollAnswer];preCheckoutQuery: [query: T.PreCheckoutQuery];purchasedPaidMedia: [purchase: T.PaidMediaPurchased];rawUpdate: [update: T.Update];Emitted for every raw update, before it is routed to a specific event.
ready: [user: ClientUser];Emitted once the client has logged in and getMe has resolved.
removedChatBoost: [boost: T.ChatBoostRemoved];shippingQuery: [query: T.ShippingQuery];