Interface EventHandlers

interface EventHandlers {
    businessConnection: (message: BusinessConnection) => PossiblyAsync<void>;
    businessMessage: (message: Message) => PossiblyAsync<void>;
    callbackQuery: (query: CallbackQuery) => PossiblyAsync<void>;
    channelPost: (message: Message) => PossiblyAsync<void>;
    chatBoost: (boostChat: ChatBoostUpdated) => PossiblyAsync<void>;
    chatCreate: (message: Message) => PossiblyAsync<void>;
    chatDelete: (message: Message) => PossiblyAsync<void>;
    chatJoinRequest: (joinRequest: ChatJoinRequest) => PossiblyAsync<void>;
    chatMember: (member: ChatMemberUpdated) => PossiblyAsync<void>;
    chatMemberAdd: (message: Message) => PossiblyAsync<void>;
    chatMemberRemove: (message: Message) => PossiblyAsync<void>;
    chosenInlineResult: (
        inlineResult: ChosenInlineResult,
    ) => PossiblyAsync<void>;
    deletedBusinessMessages: (
        message: BusinessMessagesDeleted,
    ) => PossiblyAsync<void>;
    disconnect: (telegram: TelegramClient) => PossiblyAsync<void>;
    editedBusinessMessage: (newMessage: Message) => PossiblyAsync<void>;
    editedChannelPost: (newMessage: Message) => PossiblyAsync<void>;
    editedMessage: (newMessage: Message) => PossiblyAsync<void>;
    error: (detalis: [number, unknown]) => PossiblyAsync<void>;
    inlineQuery: (inline: InlineQuery) => PossiblyAsync<void>;
    message: (message: Message) => PossiblyAsync<void>;
    messageReaction: (message: MessageReactionUpdated) => PossiblyAsync<void>;
    messageReactionCount: (
        message: MessageReactionCountUpdated,
    ) => PossiblyAsync<void>;
    myChatMember: (member: ChatMemberUpdated) => PossiblyAsync<void>;
    poll: (poll: Poll) => PossiblyAsync<void>;
    pollAnswer: (pollAnswer: PollAnswer) => PossiblyAsync<void>;
    preCheckoutQuery: (checkoutQuery: PreCheckoutQuery) => PossiblyAsync<void>;
    purchasedPaidMedia: (paidMedia: PaidMediaPurchased) => PossiblyAsync<void>;
    rawUpdate: (
        raw: Update & { client: TelegramClient },
    ) => PossiblyAsync<void>;
    ready: (telegram: TelegramClient) => PossiblyAsync<void>;
    removedChatBoost: (chatBoost: ChatBoostRemoved) => PossiblyAsync<void>;
    shippingQuery: (query: ShippingQuery) => PossiblyAsync<void>;
}

Properties

businessConnection: (message: BusinessConnection) => PossiblyAsync<void>
businessMessage: (message: Message) => PossiblyAsync<void>
callbackQuery: (query: CallbackQuery) => PossiblyAsync<void>
channelPost: (message: Message) => PossiblyAsync<void>
chatBoost: (boostChat: ChatBoostUpdated) => PossiblyAsync<void>
chatCreate: (message: Message) => PossiblyAsync<void>
chatDelete: (message: Message) => PossiblyAsync<void>
chatJoinRequest: (joinRequest: ChatJoinRequest) => PossiblyAsync<void>
chatMember: (member: ChatMemberUpdated) => PossiblyAsync<void>
chatMemberAdd: (message: Message) => PossiblyAsync<void>
chatMemberRemove: (message: Message) => PossiblyAsync<void>
chosenInlineResult: (inlineResult: ChosenInlineResult) => PossiblyAsync<void>
deletedBusinessMessages: (
    message: BusinessMessagesDeleted,
) => PossiblyAsync<void>
disconnect: (telegram: TelegramClient) => PossiblyAsync<void>
editedBusinessMessage: (newMessage: Message) => PossiblyAsync<void>
editedChannelPost: (newMessage: Message) => PossiblyAsync<void>
editedMessage: (newMessage: Message) => PossiblyAsync<void>
error: (detalis: [number, unknown]) => PossiblyAsync<void>
inlineQuery: (inline: InlineQuery) => PossiblyAsync<void>
message: (message: Message) => PossiblyAsync<void>
messageReaction: (message: MessageReactionUpdated) => PossiblyAsync<void>
messageReactionCount: (
    message: MessageReactionCountUpdated,
) => PossiblyAsync<void>
myChatMember: (member: ChatMemberUpdated) => PossiblyAsync<void>
poll: (poll: Poll) => PossiblyAsync<void>
pollAnswer: (pollAnswer: PollAnswer) => PossiblyAsync<void>
preCheckoutQuery: (checkoutQuery: PreCheckoutQuery) => PossiblyAsync<void>
purchasedPaidMedia: (paidMedia: PaidMediaPurchased) => PossiblyAsync<void>
rawUpdate: (raw: Update & { client: TelegramClient }) => PossiblyAsync<void>
ready: (telegram: TelegramClient) => PossiblyAsync<void>
removedChatBoost: (chatBoost: ChatBoostRemoved) => PossiblyAsync<void>
shippingQuery: (query: ShippingQuery) => PossiblyAsync<void>