Skip to content

alicebot.adapter.telegram.event.other

Telegram 适配器事件。

class EditedMessageEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New version of a message that is known to the bot and was edited.

readonly property edited_message

Type: alicebot.adapter.telegram.model.Message

The edited_message object.

class ChannelPostEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New incoming channel post of any kind - text, photo, sticker, etc..

readonly property channel_post

Type: alicebot.adapter.telegram.model.Message

The channel_post object.

class EditedChannelPostEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New version of a channel post that is known to the bot and was edited.

readonly property edited_channel_post

Type: alicebot.adapter.telegram.model.Message

The edited_channel_post object.

class BusinessConnectionEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot.

readonly property business_connection

Type: alicebot.adapter.telegram.model.BusinessConnection

The business_connection object.

class BusinessMessageEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New message from a connected business account.

readonly property business_message

Type: alicebot.adapter.telegram.model.Message

The business_message object.

class EditedBusinessMessageEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New version of a message from a connected business account.

readonly property edited_business_message

Type: alicebot.adapter.telegram.model.Message

The edited_business_message object.

class DeletedBusinessMessagesEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

Messages were deleted from a connected business account.

readonly property deleted_business_messages

Type: alicebot.adapter.telegram.model.BusinessMessagesDeleted

The deleted_business_messages object.

class MessageReactionEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

A reaction to a message was changed by a user.

readonly property message_reaction

Type: alicebot.adapter.telegram.model.MessageReactionUpdated

The message_reaction object.

class MessageReactionCountEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

Reactions to a message with anonymous reactions were changed.

readonly property message_reaction_count

Type: alicebot.adapter.telegram.model.MessageReactionCountUpdated

The message_reaction_count object.

class InlineQueryEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New incoming inline query.

readonly property inline_query

Type: alicebot.adapter.telegram.model.InlineQuery

The inline_query object.

class ChosenInlineResultEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

The result of an inline query that was chosen by a user and sent to their chat partner.

readonly property chosen_inline_result

Type: alicebot.adapter.telegram.model.ChosenInlineResult

The chosen_inline_result object.

class CallbackQueryEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New incoming callback query.

readonly property callback_query

Type: alicebot.adapter.telegram.model.CallbackQuery

The callback_query object.

class ShippingQueryEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New incoming shipping query.

readonly property shipping_query

Type: alicebot.adapter.telegram.model.ShippingQuery

The shipping_query object.

class PreCheckoutQueryEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New incoming pre-checkout query.

readonly property pre_checkout_query

Type: alicebot.adapter.telegram.model.PreCheckoutQuery

The pre_checkout_query object.

class PurchasedPaidMediaEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat.

readonly property purchased_paid_media

Type: alicebot.adapter.telegram.model.PaidMediaPurchased

The purchased_paid_media object.

class PollEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

New poll state.

readonly property poll

Type: alicebot.adapter.telegram.model.Poll

The poll object.

class PollAnswerEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

A user changed their answer in a non-anonymous poll.

readonly property poll_answer

Type: alicebot.adapter.telegram.model.PollAnswer

The poll_answer object.

class MyChatMemberEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

The bot's chat member status was updated in a chat.

readonly property my_chat_member

Type: alicebot.adapter.telegram.model.ChatMemberUpdated

The my_chat_member object.

class ChatMemberEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

A chat member's status was updated in a chat.

readonly property chat_member

Type: alicebot.adapter.telegram.model.ChatMemberUpdated

The chat_member object.

class ChatJoinRequestEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

A request to join the chat has been sent.

readonly property chat_join_request

Type: alicebot.adapter.telegram.model.ChatJoinRequest

The chat_join_request object.

class ChatBoostEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

A chat boost was added or changed.

readonly property chat_boost

Type: alicebot.adapter.telegram.model.ChatBoostUpdated

The chat_boost object.

class RemovedChatBoostEvent

Bases: alicebot.adapter.telegram.event.base.TelegramEvent

A boost was removed from a chat.

readonly property removed_chat_boost

Type: alicebot.adapter.telegram.model.ChatBoostRemoved

The removed_chat_boost object.

Released under the MIT License.