Skip to content

alicebot.adapter.telegram.event.base

事件基类。

class TelegramEvent

Bases: pydantic.main.BaseModel, alicebot.event.Event

Telegram Event Baseclass.

  • Attributes

    • type (str)

    • update (alicebot.adapter.telegram.model.Update)

property adapter

Type: TelegramAdapter

产生当前事件的适配器对象。

readonly property update_id

Type: int

The update's unique identifier.

Released under the MIT License.