Skip to content

export Enum

ClientEvent ​

All the possible events the client may emit.

Properties ​

Animation : "animation" ​

(message: Message )

Audio : "audio" ​

(message: Message )

BoostAdded : "boost_added" ​

BusinessConnection : "business_connection" ​

(message: Message )

BusinessMessage : "business_message" ​

(message: Message )

CallbackQuery : "callback_query" ​

ChannelChatCreated : "channel_chat_created" ​

(message: Message )

ChannelPost : "channel_post" ​

(message: Message )

ChatBackgroundSet : "chat_background_set" ​

ChatBoost : "chat_boost" ​

(chat_boost: ChatBoost )

ChatJoinRequest : "chat_join_request" ​

(request: ChatJoinRequest )

ChatMemberUpdated : "chat_member" ​

(update: ChatMemberUpdated )

ChatShared : "chat_shared" ​

(message: Message )

ChosenInlineResult : "chosen_inline_result" ​

(chosen_result: ChosenInlineResult )

Command : "command" ​

(message: Message )

ConnectedWebsite : "connected_website" ​

Contact : "contact" ​

(message: Message )

DeleteChatPhoto : "delete_chat_photo" ​

DeletedBusinessMessage : "deleted_business_messages" ​

(message: Message )

Dice : "dice" ​

(message: Message )

Document : "document" ​

(message: Message )

EditedBusinessMessage : "edited_business_message" ​

(message: Message )

EditedChannelPost : "edited_channel_post" ​

(message: Message )

EditedMessage : "edited_message" ​

(message: Message )

ForumTopicClosed : "forum_topic_closed" ​

(topic: ForumTopic )

ForumTopicCreated : "forum_topic_created" ​

(topic: ForumTopic )

ForumTopicEdited : "forum_topic_edited" ​

(topic: ForumTopic )

ForumTopicReopened : "forum_topic_reopened" ​

(topic: ForumTopic )

Game : "game" ​

(message: Message )

GeneralForumTopicHidden : "general_forum_topic_hidden" ​

GeneralForumTopicUnhidden : "general_forum_topic_unhidden" ​

Giveaway : "giveaway" ​

GiveawayCompleted : "giveaway_completed" ​

GiveawayCreated : "giveaway_created" ​

GiveawayWinners : "giveaway_winners" ​

GroupChatCreated : "group_chat_created" ​

(message: Message )

InlineQuery : "inline_query" ​

(inline_query: InlineQuery )

Invoice : "invoice" ​

LeftChatMember : "left_chat_member" ​

Location : "location" ​

(message: Message )

Message : "message" ​

(message: Message )

MessageAutoDeleteTimerChanged : "message_auto_delete_timer_changed" ​

MessageReaction : "message_reaction" ​

(message: Message , old_reactions: MessageReaction [], new_reactions: MessageReaction [])

MessageReactionCount : "message_reaction_count" ​

(message: Message , decreased: Object, increased: Object)

MigrateFromChatId : "migrate_from_chat_id" ​

MigrateToChatId : "migrate_to_chat_id" ​

MyChatMemberUpdated : "my_chat_member" ​

NewChatMembers : "new_chat_members" ​

(member: Member )

NewChatPhoto : "new_chat_photo" ​

NewChatTitle : "new_chat_title" ​

PaidMedia : "paid_media" ​

(message: Message )

PassportData : "passport_data" ​

Photo : "photo" ​

(message: Message )

PinnedMessage : "pinned_message" ​

(message: Message )

Poll : "poll" ​

(message: Message )

PollAnswer : "poll_answer" ​

(message: Message )

PreCheckoutQuery : "pre_checkout_query" ​

(query: PreCheckoutQuery )

ProximityAlertTriggered : "proximity_alert_triggered" ​

PurchasedPaidMedia : "purchased_paid_media" ​

QuoteText : "quote" ​

(message: Message )

Raw : "raw" ​

(object: Object)

Ready : "ready" ​

(client: Client )

RefundedPayment : "refunded_payment" ​

RemovedChatBoost : "removed_chat_boost" ​

ShippingQuery : "shipping_query" ​

(shipping: ShippingQuery )

Story : "story" ​

(message: Message )

SuccessfulPayment : "successful_payment" ​

(message: SuccessfulPayment )

SupergroupChatCreated : "supergroup_chat_created" ​

(message: Message )

Text : "text" ​

(message: Message )

Unhandled : "unhandled" ​

(packet: UpdatePacket )

UsersShared : "users_shared" ​

(message: Message )

Venue : "venue" ​

(message: Message )

Video : "video" ​

(message: Message )

VideoChatEnded : "video_chat_ended" ​

VideoChatParticipantsInvited : "video_chat_participants_invited" ​

VideoChatScheduled : "video_chat_scheduled" ​

VideoChatStarted : "video_chat_started" ​

VideoNote : "video_note" ​

(message: Message )

Voice : "voice" ​

(message: Message )

WebAppData : "web_app_data" ​

WriteAccessAllowed : "write_access_allowed" ​

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.