From 79c9a9180bc6f2a42da8c16b4fdbc0f46059e934 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:38:47 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=20API=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3=20(#155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: st1020 <47559019+st1020@users.noreply.github.com> --- docs/api/adapter/apscheduler/config.md | 2 +- docs/api/adapter/apscheduler/event.md | 4 +- docs/api/adapter/apscheduler/index.md | 24 +- docs/api/adapter/cqhttp/event.md | 28 +- docs/api/adapter/cqhttp/exceptions.md | 2 +- docs/api/adapter/cqhttp/index.md | 8 +- docs/api/adapter/cqhttp/message.md | 6 +- docs/api/adapter/dingtalk/event.md | 12 +- docs/api/adapter/dingtalk/index.md | 20 +- docs/api/adapter/dingtalk/message.md | 22 +- docs/api/adapter/index.md | 7 +- docs/api/adapter/mirai/event/message.md | 48 +- docs/api/adapter/mirai/event/meta.md | 2 +- docs/api/adapter/mirai/event/request.md | 18 +- docs/api/adapter/mirai/exceptions.md | 2 +- docs/api/adapter/mirai/index.md | 24 +- docs/api/adapter/mirai/message.md | 10 +- docs/api/adapter/onebot/event.md | 30 +- docs/api/adapter/onebot/index.md | 10 +- docs/api/adapter/onebot/message.md | 6 +- docs/api/adapter/telegram/api.md | 30 +- docs/api/adapter/telegram/entity.md | 165 + docs/api/adapter/telegram/event/base.md | 19 + docs/api/adapter/telegram/event/index.md | 3 + docs/api/adapter/telegram/event/message.md | 71 + .../telegram/{event.md => event/other.md} | 144 +- docs/api/adapter/telegram/index.md | 6 +- docs/api/adapter/telegram/media.md | 418 +- docs/api/adapter/telegram/message.md | 132 +- docs/api/adapter/telegram/model.md | 4554 ++++++++--------- docs/api/adapter/telegram/utils.md | 59 - docs/api/adapter/utils.md | 70 +- docs/api/bot.md | 76 +- docs/api/config.md | 6 +- docs/api/dependencies.md | 2 +- docs/api/event.md | 20 + docs/api/message.md | 12 +- docs/api/plugin.md | 2 +- docs/api/utils.md | 44 +- 39 files changed, 3116 insertions(+), 3002 deletions(-) create mode 100644 docs/api/adapter/telegram/entity.md create mode 100644 docs/api/adapter/telegram/event/base.md create mode 100644 docs/api/adapter/telegram/event/index.md create mode 100644 docs/api/adapter/telegram/event/message.md rename docs/api/adapter/telegram/{event.md => event/other.md} (63%) delete mode 100644 docs/api/adapter/telegram/utils.md diff --git a/docs/api/adapter/apscheduler/config.md b/docs/api/adapter/apscheduler/config.md index c95bbb4..3487115 100644 --- a/docs/api/adapter/apscheduler/config.md +++ b/docs/api/adapter/apscheduler/config.md @@ -10,4 +10,4 @@ APScheduler 配置类,将在适配器被加载时被混入到机器人主配 - **Attributes** - - **scheduler\_config** (_Dict\[str, Any\]_) - 调度器配置。 + - **scheduler\_config** (_dict\[str, typing.Any\]_) - 调度器配置。 diff --git a/docs/api/adapter/apscheduler/event.md b/docs/api/adapter/apscheduler/event.md index 6786714..c9702f9 100644 --- a/docs/api/adapter/apscheduler/event.md +++ b/docs/api/adapter/apscheduler/event.md @@ -12,7 +12,7 @@ APSchedulerEvent 事件基类。 - **type** (_Optional\[str\]_) - - **plugin\_class** (_Type\[alicebot.plugin.Plugin\]_) + - **plugin\_class** (_Any_) ### _readonly property_ `job` {#APSchedulerEvent-job} @@ -28,6 +28,6 @@ Type: _Union\[str, apscheduler.triggers.base.BaseTrigger, NoneType\]_ ### _readonly property_ `trigger_args` {#APSchedulerEvent-trigger-args} -Type: _Optional\[Dict\[str, Any\]\]_ +Type: _Optional\[dict\[str, Any\]\]_ 当前事件对应的 Plugin 的 `trigger_args`。 diff --git a/docs/api/adapter/apscheduler/index.md b/docs/api/adapter/apscheduler/index.md index 1fa9b2f..f93b67c 100644 --- a/docs/api/adapter/apscheduler/index.md +++ b/docs/api/adapter/apscheduler/index.md @@ -17,7 +17,7 @@ APScheduler 适配器。 - **scheduler** (_apscheduler.schedulers.asyncio.AsyncIOScheduler_) - - **plugin\_class\_to\_job** (_Dict\[Type\[alicebot.plugin.Plugin\[Any, Any, Any\]\], apscheduler.job.Job\]_) + - **plugin\_class\_to\_job** (_dict\[type\[alicebot.plugin.Plugin\[typing.Any, typing.Any, typing.Any\]\], apscheduler.job.Job\]_) ### _class_ `Config` {#Config} @@ -27,7 +27,7 @@ APScheduler 配置类,将在适配器被加载时被混入到机器人主配 - **Attributes** - - **scheduler\_config** (_Dict\[str, Any\]_) - 调度器配置。 + - **scheduler\_config** (_dict\[str, typing.Any\]_) - 调度器配置。 ### _async method_ `create_event(self, plugin_class)` {#APSchedulerAdapter-create-event} @@ -35,7 +35,7 @@ APScheduler 配置类,将在适配器被加载时被混入到机器人主配 - **Arguments** - - **plugin\_class** (_Type\[alicebot.plugin.Plugin\[Any, Any, Any\]\]_) - `Plugin` 类。 + - **plugin\_class** (_type\[alicebot.plugin.Plugin\[typing.Any, typing.Any, typing.Any\]\]_) - `Plugin` 类。 - **Returns** @@ -43,7 +43,9 @@ APScheduler 配置类,将在适配器被加载时被混入到机器人主配 ### _async method_ `run(self)` {#APSchedulerAdapter-run} -启动调度器。 +适配器运行方法,适配器开发者必须实现该方法。 + +适配器运行过程中保持保持运行,当此方法结束后, AliceBot 不会自动重新启动适配器。 - **Returns** @@ -65,7 +67,11 @@ APScheduler 适配器不适用发送消息。 ### _async method_ `shutdown(self)` {#APSchedulerAdapter-shutdown} -关闭调度器。 +在适配器结束运行时运行的方法,用于安全地关闭适配器。 + +AliceBot 在接收到系统的结束信号后先发送 cancel 请求给 run 任务。 +在所有适配器都停止运行后,会依次运行并等待所有适配器的 `shutdown()` 方法。 +当强制退出时此方法可能未被执行。 - **Returns** @@ -73,7 +79,9 @@ APScheduler 适配器不适用发送消息。 ### _async method_ `startup(self)` {#APSchedulerAdapter-startup} -创建 `AsyncIOScheduler` 对象。 +在适配器开始运行前运行的方法,用于初始化适配器。 + +AliceBot 依次运行并等待所有适配器的 `startup()` 方法,待运行完毕后再创建 `run()` 任务。 - **Returns** @@ -87,11 +95,11 @@ APScheduler 适配器不适用发送消息。 - **trigger** (_str_) - APScheduler 触发器。 - - **trigger\_args** (_Dict\[str, Any\]_) - APScheduler 触发器参数。 + - **trigger\_args** (_dict\[str, typing.Any\]_) - APScheduler 触发器参数。 - **override\_rule** (_bool_) - 是否重写 `rule()` 方法。 若为 `True`,则会在 `rule()` 方法中添加处理本插件定义的计划任务事件的逻辑。 - **Returns** - Type: _Callable\[\[Type\[~PluginT\]\], Type\[~PluginT\]\]_ + Type: _Callable\[\[type\[~PluginT\]\], type\[~PluginT\]\]_ diff --git a/docs/api/adapter/cqhttp/event.md b/docs/api/adapter/cqhttp/event.md index 3764d98..9477acc 100644 --- a/docs/api/adapter/cqhttp/event.md +++ b/docs/api/adapter/cqhttp/event.md @@ -92,7 +92,7 @@ CQHTTP 事件基类 - **Returns** - Type: _Tuple\[Optional\[str\], Optional\[str\], Optional\[str\]\]_ + Type: _tuple\[typing.Optional\[str\], typing.Optional\[str\], typing.Optional\[str\]\]_ 事件类型。 @@ -154,11 +154,11 @@ Bases: `alicebot.adapter.cqhttp.event.CQHTTPEvent`, `alicebot.event.MessageEvent - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -180,11 +180,11 @@ Bases: `alicebot.adapter.cqhttp.event.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -210,11 +210,11 @@ Bases: `alicebot.adapter.cqhttp.event.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -374,8 +374,6 @@ Bases: `alicebot.adapter.cqhttp.event.NoticeEvent` - **sub\_type** (_str_) - - **group\_id** (_Optional\[int\]_) - - **user\_id** (_int_) ## _class_ `PokeNotifyEvent` {#PokeNotifyEvent} @@ -438,7 +436,7 @@ Bases: `alicebot.adapter.cqhttp.event.CQHTTPEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -448,7 +446,7 @@ Bases: `alicebot.adapter.cqhttp.event.CQHTTPEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -478,7 +476,7 @@ Bases: `alicebot.adapter.cqhttp.event.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -488,7 +486,7 @@ Bases: `alicebot.adapter.cqhttp.event.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -518,7 +516,7 @@ Bases: `alicebot.adapter.cqhttp.event.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -532,7 +530,7 @@ Bases: `alicebot.adapter.cqhttp.event.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 diff --git a/docs/api/adapter/cqhttp/exceptions.md b/docs/api/adapter/cqhttp/exceptions.md index e0e7911..ab401eb 100644 --- a/docs/api/adapter/cqhttp/exceptions.md +++ b/docs/api/adapter/cqhttp/exceptions.md @@ -26,7 +26,7 @@ API 请求成功响应,但响应表示 API 操作失败。 - **Arguments** - - **resp** (_Dict\[str, Any\]_) - 返回的响应。 + - **resp** (_dict\[str, typing.Any\]_) - 返回的响应。 - **Returns** diff --git a/docs/api/adapter/cqhttp/index.md b/docs/api/adapter/cqhttp/index.md index ce17db2..ec7afd4 100644 --- a/docs/api/adapter/cqhttp/index.md +++ b/docs/api/adapter/cqhttp/index.md @@ -13,7 +13,7 @@ CQHTTP 协议适配器。 - **Attributes** - - **event\_models** (_ClassVar\[Dict\[Tuple\[Optional\[str\], Optional\[str\], Optional\[str\]\], Type\[alicebot.adapter.cqhttp.event.CQHTTPEvent\]\]\]_) + - **event\_models** (_ClassVar\[dict\[tuple\[Optional\[str\], Optional\[str\], Optional\[str\]\], type\[alicebot.adapter.cqhttp.event.CQHTTPEvent\]\]\]_) ### _class_ `Config` {#Config} @@ -83,7 +83,7 @@ CQHTTP 配置类,将在适配器被加载时被混入到机器人主配置中 - **Returns** - Type: _Type\[alicebot.adapter.cqhttp.event.CQHTTPEvent\]_ + Type: _type\[alicebot.adapter.cqhttp.event.CQHTTPEvent\]_ 对应的事件类。 @@ -93,7 +93,7 @@ CQHTTP 配置类,将在适配器被加载时被混入到机器人主配置中 - **Arguments** - - **msg** (_Dict\[str, Any\]_) - 接收到的信息。 + - **msg** (_dict\[str, typing.Any\]_) - 接收到的信息。 - **Returns** @@ -125,7 +125,7 @@ CQHTTP 配置类,将在适配器被加载时被混入到机器人主配置中 - **Arguments** - - **message\_** (_Union\[List\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, Mapping\[str, Any\]\]_) - 消息内容,可以是 `str`, `Mapping`, `Iterable[Mapping]`, + - **message\_** (_Union\[list\[alicebot.adapter.cqhttp.message.CQHTTPMessageSegment\], alicebot.adapter.cqhttp.message.CQHTTPMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 消息内容,可以是 `str`, `Mapping`, `Iterable[Mapping]`, `CQHTTPMessageSegment`, `CQHTTPMessage。` 将使用 `CQHTTPMessage` 进行封装。 diff --git a/docs/api/adapter/cqhttp/message.md b/docs/api/adapter/cqhttp/message.md index cf0bcdb..3e0083f 100644 --- a/docs/api/adapter/cqhttp/message.md +++ b/docs/api/adapter/cqhttp/message.md @@ -14,7 +14,7 @@ CQHTTP 消息。 - **Returns** - Type: _Type\[CQHTTPMessageSegment\]_ + Type: _type\['CQHTTPMessageSegment'\]_ 消息字段类。 @@ -86,7 +86,7 @@ QQ 表情 ### _method_ `from_str(msg)` {#CQHTTPMessageSegment-from-str} -用于将 `str` 转换为消息字段。 +用于将 `str` 转换为消息字段,子类应重写此方法。 - **Returns** @@ -110,7 +110,7 @@ QQ 表情 - **Returns** - Type: _Type\[alicebot.adapter.cqhttp.message.CQHTTPMessage\]_ + Type: _type\[alicebot.adapter.cqhttp.message.CQHTTPMessage\]_ 消息类。 diff --git a/docs/api/adapter/dingtalk/event.md b/docs/api/adapter/dingtalk/event.md index 9a345e4..0946709 100644 --- a/docs/api/adapter/dingtalk/event.md +++ b/docs/api/adapter/dingtalk/event.md @@ -66,13 +66,13 @@ DingTalk 事件基类 - **chatbotUserId** (_str_) - - **atUsers** (_List\[alicebot.adapter.dingtalk.event.UserInfo\]_) + - **atUsers** (_list\[alicebot.adapter.dingtalk.event.UserInfo\]_) - **text** (_Text_) - - **response\_msg** (_Union\[NoneType, str, Dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) + - **response\_msg** (_Union\[NoneType, str, dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - - **response\_at** (_Union\[NoneType, Dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) + - **response\_at** (_Union\[NoneType, dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) ### _method_ `get_plain_text(self)` {#DingTalkEvent-get-plain-text} @@ -106,13 +106,13 @@ Type: _alicebot.adapter.dingtalk.message.DingTalkMessage_ - **Arguments** - - **message** (_Union\[str, Dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - 回复消息的内容,可以是 `str`, `Dict` 或 `DingTalkMessage`。 + - **message** (_Union\[str, dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - 回复消息的内容,可以是 `str`, `Dict` 或 `DingTalkMessage`。 - - **at** (_Union\[NoneType, Dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - 回复消息时 At 的对象,必须时 at 类型的 `DingTalkMessage`,或者符合标准的 `Dict`。 + - **at** (_Union\[NoneType, dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - 回复消息时 At 的对象,必须时 at 类型的 `DingTalkMessage`,或者符合标准的 `Dict`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ 调用 Webhook 地址后钉钉服务器的响应。 diff --git a/docs/api/adapter/dingtalk/index.md b/docs/api/adapter/dingtalk/index.md index e173af6..ec713fa 100644 --- a/docs/api/adapter/dingtalk/index.md +++ b/docs/api/adapter/dingtalk/index.md @@ -69,7 +69,9 @@ DingTalk 配置类,将在适配器被加载时被混入到机器人主配置 ### _async method_ `run(self)` {#DingTalkAdapter-run} -运行 aiohttp 服务器。 +适配器运行方法,适配器开发者必须实现该方法。 + +适配器运行过程中保持保持运行,当此方法结束后, AliceBot 不会自动重新启动适配器。 - **Returns** @@ -85,13 +87,13 @@ DingTalk 配置类,将在适配器被加载时被混入到机器人主配置 - **conversation\_type** (_Literal\['1', '2'\]_) - 聊天类型,"1" 表示单聊,"2" 表示群聊。 - - **msg** (_Union\[str, Dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - 消息。 + - **msg** (_Union\[str, dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - 消息。 - - **at** (_Union\[NoneType, Dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - At 对象,仅在群聊时生效,默认为空。 + - **at** (_Union\[NoneType, dict\[str, Any\], alicebot.adapter.dingtalk.message.DingTalkMessage\]_) - At 对象,仅在群聊时生效,默认为空。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ 钉钉服务器的响应。 @@ -105,7 +107,11 @@ DingTalk 配置类,将在适配器被加载时被混入到机器人主配置 ### _async method_ `shutdown(self)` {#DingTalkAdapter-shutdown} -清理 aiohttp AppRunner。 +在适配器结束运行时运行的方法,用于安全地关闭适配器。 + +AliceBot 在接收到系统的结束信号后先发送 cancel 请求给 run 任务。 +在所有适配器都停止运行后,会依次运行并等待所有适配器的 `shutdown()` 方法。 +当强制退出时此方法可能未被执行。 - **Returns** @@ -113,7 +119,9 @@ DingTalk 配置类,将在适配器被加载时被混入到机器人主配置 ### _async method_ `startup(self)` {#DingTalkAdapter-startup} -创建 aiohttp Application。 +在适配器开始运行前运行的方法,用于初始化适配器。 + +AliceBot 依次运行并等待所有适配器的 `startup()` 方法,待运行完毕后再创建 `run()` 任务。 - **Returns** diff --git a/docs/api/adapter/dingtalk/message.md b/docs/api/adapter/dingtalk/message.md index 0166634..41cb580 100644 --- a/docs/api/adapter/dingtalk/message.md +++ b/docs/api/adapter/dingtalk/message.md @@ -16,7 +16,7 @@ DingTalk 独立跳转 actionCard 消息 - **text** (_str_) - - **btns** (_List\[Any\]_) + - **btns** (_list\[typing.Any\]_) - **btn\_orientation** (_str_) @@ -48,7 +48,7 @@ DingTalk At 信息 - **Arguments** - - **at\_user\_ids** (_Optional\[List\[str\]\]_) + - **at\_user\_ids** (_Optional\[list\[str\]\]_) - **is\_at\_all** (_bool_) @@ -64,25 +64,25 @@ DingTalk feedCard 消息 Type: _DingTalkMessage_ -### _method_ `get_plain_text(self)` {#DingTalkMessage-get-plain-text} +### _method_ `get_message_class()` {#DingTalkMessage-get-message-class} -获取消息中的纯文本部分。 +获取消息类。 - **Returns** - Type: _str_ + Type: _None_ - 消息中的纯文本部分。 + 消息类。 -### _method_ `get_segment_class()` {#DingTalkMessage-get-segment-class} +### _method_ `get_plain_text(self)` {#DingTalkMessage-get-plain-text} -获取消息字段类。 +获取消息中的纯文本部分。 - **Returns** - Type: _None_ + Type: _str_ - 消息字段类。 + 消息中的纯文本部分。 ### _method_ `link(text, title, message_url, pic_url = None)` {#DingTalkMessage-link} @@ -126,7 +126,7 @@ DingTalk 原始消息 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ 符合钉钉消息标准的消息字段字典。 diff --git a/docs/api/adapter/index.md b/docs/api/adapter/index.md index 5fd5fa0..ec22c25 100644 --- a/docs/api/adapter/index.md +++ b/docs/api/adapter/index.md @@ -16,7 +16,7 @@ Bases: `typing.Generic`, `abc.ABC` - **bot** (_Bot_) - 当前的机器人对象。 - - **Config** (_Type\[~ConfigT\]_) + - **Config** (_type\[~ConfigT\]_) ### _method_ `__init__(self, bot)` {#Adapter---init--} @@ -45,7 +45,7 @@ Type: _~ConfigT_ - **Arguments** - - **func** (_Optional\[Callable\[\[Any\], Union\[bool, Awaitable\[bool\]\]\]\]_) - 协程或者函数,函数会被自动包装为协程执行。 + - **func** (_Optional\[Callable\[\[Any\], Union\[bool, collections.abc.Awaitable\[bool\]\]\]\]_) - 协程或者函数,函数会被自动包装为协程执行。 要求接受一个事件作为参数,返回布尔值。 当协程返回 `True` 时返回当前事件。 当为 `None` 时相当于输入对于任何事件均返回真的协程,即返回适配器接收到的下一个事件。 @@ -88,7 +88,8 @@ Type: _~ConfigT_ 在适配器结束运行时运行的方法,用于安全地关闭适配器。 -AliceBot 在接收到系统的结束信号后依次运行并等待所有适配器的 `shutdown()` 方法。 +AliceBot 在接收到系统的结束信号后先发送 cancel 请求给 run 任务。 +在所有适配器都停止运行后,会依次运行并等待所有适配器的 `shutdown()` 方法。 当强制退出时此方法可能未被执行。 - **Returns** diff --git a/docs/api/adapter/mirai/event/message.md b/docs/api/adapter/mirai/event/message.md index 986d432..1d11b76 100644 --- a/docs/api/adapter/mirai/event/message.md +++ b/docs/api/adapter/mirai/event/message.md @@ -34,13 +34,13 @@ Type: _alicebot.adapter.mirai.message.MiraiMessage_ - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -70,13 +70,13 @@ Bases: `alicebot.adapter.mirai.event.message.MiraiBaseMessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -98,13 +98,13 @@ Bases: `alicebot.adapter.mirai.event.message.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -126,13 +126,13 @@ Bases: `alicebot.adapter.mirai.event.message.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -154,13 +154,13 @@ Bases: `alicebot.adapter.mirai.event.message.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -182,13 +182,13 @@ Bases: `alicebot.adapter.mirai.event.message.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -210,13 +210,13 @@ Bases: `alicebot.adapter.mirai.event.message.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -246,13 +246,13 @@ Bases: `alicebot.adapter.mirai.event.message.MiraiBaseMessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -274,13 +274,13 @@ Bases: `alicebot.adapter.mirai.event.message.SyncMessage` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -302,13 +302,13 @@ Bases: `alicebot.adapter.mirai.event.message.SyncMessage` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -330,13 +330,13 @@ Bases: `alicebot.adapter.mirai.event.message.SyncMessage` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -358,12 +358,12 @@ Bases: `alicebot.adapter.mirai.event.message.SyncMessage` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **quote** (_bool_) - 引用消息,默认为 `False`。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 diff --git a/docs/api/adapter/mirai/event/meta.md b/docs/api/adapter/mirai/event/meta.md index daded4b..dc5d08e 100644 --- a/docs/api/adapter/mirai/event/meta.md +++ b/docs/api/adapter/mirai/event/meta.md @@ -84,4 +84,4 @@ Bases: `alicebot.adapter.mirai.event.meta.MetaEvent` - **member** (_Optional\[alicebot.adapter.mirai.event.base.GroupMemberInfo\]_) - - **args** (_List\[Any\]_) + - **args** (_list\[typing.Any\]_) diff --git a/docs/api/adapter/mirai/event/request.md b/docs/api/adapter/mirai/event/request.md index 1c04e4c..d17d024 100644 --- a/docs/api/adapter/mirai/event/request.md +++ b/docs/api/adapter/mirai/event/request.md @@ -18,7 +18,7 @@ Bases: `alicebot.adapter.mirai.event.base.MiraiEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -32,7 +32,7 @@ Bases: `alicebot.adapter.mirai.event.base.MiraiEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -66,7 +66,7 @@ Bases: `alicebot.adapter.mirai.event.request.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -82,7 +82,7 @@ Bases: `alicebot.adapter.mirai.event.request.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -118,7 +118,7 @@ Bases: `alicebot.adapter.mirai.event.request.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -134,7 +134,7 @@ Bases: `alicebot.adapter.mirai.event.request.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -150,7 +150,7 @@ Bases: `alicebot.adapter.mirai.event.request.RequestEvent` - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -186,7 +186,7 @@ Bot 被邀请入群申请 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -200,6 +200,6 @@ Bot 被邀请入群申请 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 diff --git a/docs/api/adapter/mirai/exceptions.md b/docs/api/adapter/mirai/exceptions.md index 545823b..e41a1f3 100644 --- a/docs/api/adapter/mirai/exceptions.md +++ b/docs/api/adapter/mirai/exceptions.md @@ -28,7 +28,7 @@ API 请求成功响应,但响应表示 API 操作失败。 - **code** (_int_) - 错误代码。 - - **resp** (_Dict\[str, Any\]_) - 返回的响应。 + - **resp** (_dict\[str, typing.Any\]_) - 返回的响应。 - **Returns** diff --git a/docs/api/adapter/mirai/index.md b/docs/api/adapter/mirai/index.md index e021817..451de99 100644 --- a/docs/api/adapter/mirai/index.md +++ b/docs/api/adapter/mirai/index.md @@ -19,7 +19,7 @@ Mirai 协议适配器。 - **name** (_str_) - - **event\_models** (_ClassVar\[Dict\[str, Type\[alicebot.adapter.mirai.event.base.MiraiEvent\]\]\]_) + - **event\_models** (_ClassVar\[dict\[str, type\[alicebot.adapter.mirai.event.base.MiraiEvent\]\]\]_) ### _class_ `Config` {#Config} @@ -77,7 +77,7 @@ Mirai 配置类,将在适配器被加载时被混入到机器人主配置中 - **Returns** - Type: _Type\[alicebot.adapter.mirai.event.base.MiraiEvent\]_ + Type: _type\[alicebot.adapter.mirai.event.base.MiraiEvent\]_ 对应的事件类。 @@ -87,27 +87,27 @@ Mirai 配置类,将在适配器被加载时被混入到机器人主配置中 - **Arguments** - - **msg** (_Dict\[str, Any\]_) - 接收到的信息。 + - **msg** (_dict\[str, typing.Any\]_) - 接收到的信息。 - **Returns** Type: _None_ -### _async method_ `handle_websocket_msg(self, msg)` {#MiraiAdapter-handle-websocket-msg} - -处理 WebSocket 消息。 +### _async method_ `handle_websocket(self)` {#MiraiAdapter-handle-websocket} -- **Arguments** - - - **msg** (_aiohttp.http\_websocket.WSMessage_) +处理 WebSocket。 - **Returns** Type: _None_ -### _async method_ `reverse_ws_connection_hook(self)` {#MiraiAdapter-reverse-ws-connection-hook} +### _async method_ `handle_websocket_msg(self, msg)` {#MiraiAdapter-handle-websocket-msg} + +处理 WebSocket 消息。 -反向 WebSocket 连接建立时的钩子函数。 +- **Arguments** + + - **msg** (_aiohttp.http\_websocket.WSMessage_) - **Returns** @@ -119,7 +119,7 @@ Mirai 配置类,将在适配器被加载时被混入到机器人主配置中 - **Arguments** - - **message\_** (_Union\[List\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, Mapping\[str, Any\]\]_) - 消息内容,可以是 `str`, `Mapping`, `Iterable[Mapping]`, + - **message\_** (_Union\[list\[alicebot.adapter.mirai.message.MiraiMessageSegment\], alicebot.adapter.mirai.message.MiraiMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 消息内容,可以是 `str`, `Mapping`, `Iterable[Mapping]`, `MiraiMessageSegment`, `MiraiMessage`。 将使用 `MiraiMessage` 进行封装。 diff --git a/docs/api/adapter/mirai/message.md b/docs/api/adapter/mirai/message.md index e0325f6..600c121 100644 --- a/docs/api/adapter/mirai/message.md +++ b/docs/api/adapter/mirai/message.md @@ -14,7 +14,7 @@ Mirai 消息 - **Returns** - Type: _List\[Dict\[str, Any\]\]_ + Type: _list\[dict\[str, typing.Any\]\]_ messageChain 数组。 @@ -24,7 +24,7 @@ Mirai 消息 - **Returns** - Type: _Type\[MiraiMessageSegment\]_ + Type: _type\['MiraiMessageSegment'\]_ 消息字段类。 @@ -108,7 +108,7 @@ FlashImage 消息 ### _method_ `from_str(msg)` {#MiraiMessageSegment-from-str} -用于将 `str` 转换为消息字段。 +用于将 `str` 转换为消息字段,子类应重写此方法。 - **Returns** @@ -122,7 +122,7 @@ FlashImage 消息 - **Returns** - Type: _Type\[MiraiMessage\]_ + Type: _type\['MiraiMessage'\]_ 消息类。 @@ -220,7 +220,7 @@ Quote 消息 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ 符合 Mirai-api-http 标准的消息字段字典。 diff --git a/docs/api/adapter/onebot/event.md b/docs/api/adapter/onebot/event.md index 6b4e276..00deebb 100644 --- a/docs/api/adapter/onebot/event.md +++ b/docs/api/adapter/onebot/event.md @@ -1,6 +1,6 @@ # alicebot.adapter.onebot.event -OntBot 适配器事件。 +OneBot 适配器事件。 ## _class_ `BotSelf` {#BotSelf} @@ -50,9 +50,9 @@ Bases: `pydantic.main.BaseModel` - **good** (_bool_) - - **bots** (_List\[alicebot.adapter.onebot.event.BotStatus\]_) + - **bots** (_list\[alicebot.adapter.onebot.event.BotStatus\]_) -## _class_ `OntBotEvent` {#OntBotEvent} +## _class_ `OneBotEvent` {#OneBotEvent} Bases: `alicebot.event.Event[OneBotAdapter]` @@ -70,19 +70,19 @@ OneBot 事件基类 - **sub\_type** (_str_) -### _method_ `get_event_type()` {#OntBotEvent-get-event-type} +### _method_ `get_event_type()` {#OneBotEvent-get-event-type} 获取事件类型。 - **Returns** - Type: _Tuple\[Optional\[str\], Optional\[str\], Optional\[str\]\]_ + Type: _tuple\[typing.Optional\[str\], typing.Optional\[str\], typing.Optional\[str\]\]_ 事件类型。 ## _class_ `BotEvent` {#BotEvent} -Bases: `alicebot.adapter.onebot.event.OntBotEvent` +Bases: `alicebot.adapter.onebot.event.OneBotEvent` 包含 self 字段的机器人事件 @@ -98,7 +98,7 @@ Type: _bool_ ## _class_ `MetaEvent` {#MetaEvent} -Bases: `alicebot.adapter.onebot.event.OntBotEvent` +Bases: `alicebot.adapter.onebot.event.OneBotEvent` 元事件 @@ -186,11 +186,11 @@ Bases: `alicebot.adapter.onebot.event.BotEvent`, `alicebot.event.MessageEvent[On - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -210,11 +210,11 @@ Bases: `alicebot.adapter.onebot.event.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -236,11 +236,11 @@ Bases: `alicebot.adapter.onebot.event.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 @@ -264,11 +264,11 @@ Bases: `alicebot.adapter.onebot.event.MessageEvent` - **Arguments** - - **message** (_Union\[List\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 + - **message** (_Union\[list\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 回复消息的内容,同 `call_api()` 方法。 - **Returns** - Type: _Dict\[str, Any\]_ + Type: _dict\[str, typing.Any\]_ API 请求响应。 diff --git a/docs/api/adapter/onebot/index.md b/docs/api/adapter/onebot/index.md index 688b950..368bfb6 100644 --- a/docs/api/adapter/onebot/index.md +++ b/docs/api/adapter/onebot/index.md @@ -13,7 +13,7 @@ OneBot 协议适配器。 - **Attributes** - - **event\_models** (_ClassVar\[Dict\[Tuple\[Optional\[str\], Optional\[str\], Optional\[str\]\], Type\[alicebot.adapter.onebot.event.OntBotEvent\]\]\]_) + - **event\_models** (_ClassVar\[dict\[tuple\[Optional\[str\], Optional\[str\], Optional\[str\]\], type\[alicebot.adapter.onebot.event.OneBotEvent\]\]\]_) ### _class_ `Config` {#Config} @@ -39,7 +39,7 @@ OneBot 配置类,将在适配器被加载时被混入到机器人主配置中 ### _method_ `add_event_model(event_model)` {#OneBotAdapter-add-event-model} -添加自定义事件模型,事件模型类必须继承于 `OntBotEvent`。 +添加自定义事件模型,事件模型类必须继承于 `OneBotEvent`。 - **Returns** @@ -85,7 +85,7 @@ OneBot 配置类,将在适配器被加载时被混入到机器人主配置中 - **Returns** - Type: _Type\[alicebot.adapter.onebot.event.OntBotEvent\]_ + Type: _type\[alicebot.adapter.onebot.event.OneBotEvent\]_ 对应的事件类。 @@ -95,7 +95,7 @@ OneBot 配置类,将在适配器被加载时被混入到机器人主配置中 - **Arguments** - - **msg** (_Dict\[str, Any\]_) - 接收到的信息。 + - **msg** (_dict\[str, typing.Any\]_) - 接收到的信息。 - **Returns** @@ -127,7 +127,7 @@ OneBot 配置类,将在适配器被加载时被混入到机器人主配置中 - **Arguments** - - **message\_** (_Union\[List\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, Mapping\[str, Any\]\]_) - 消息内容,可以是 `str`, `Mapping`, `Iterable[Mapping]`, + - **message\_** (_Union\[list\[alicebot.adapter.onebot.message.OneBotMessageSegment\], alicebot.adapter.onebot.message.OneBotMessageSegment, str, collections.abc.Mapping\[str, Any\]\]_) - 消息内容,可以是 `str`, `Mapping`, `Iterable[Mapping]`, `OneBotMessageSegment`, `OneBotMessage`。 将使用 `OneBotMessage` 进行封装。 diff --git a/docs/api/adapter/onebot/message.md b/docs/api/adapter/onebot/message.md index 0d81679..302c4cf 100644 --- a/docs/api/adapter/onebot/message.md +++ b/docs/api/adapter/onebot/message.md @@ -14,7 +14,7 @@ OneBot 消息。 - **Returns** - Type: _Type\[OneBotMessageSegment\]_ + Type: _type\['OneBotMessageSegment'\]_ 消息字段类。 @@ -42,7 +42,7 @@ OneBot 消息字段。 ### _method_ `from_str(msg)` {#OneBotMessageSegment-from-str} -用于将 `str` 转换为消息字段。 +用于将 `str` 转换为消息字段,子类应重写此方法。 - **Returns** @@ -56,7 +56,7 @@ OneBot 消息字段。 - **Returns** - Type: _Type\[OneBotMessage\]_ + Type: _type\['OneBotMessage'\]_ 消息类。 diff --git a/docs/api/adapter/telegram/api.md b/docs/api/adapter/telegram/api.md index c5a508d..a6e6e6b 100644 --- a/docs/api/adapter/telegram/api.md +++ b/docs/api/adapter/telegram/api.md @@ -2,9 +2,35 @@ Telegram API 定义。 -## _class_ `TelegramAPI` {#TelegramAPI} +## _abstract class_ `TelegramAPIBase` {#TelegramAPIBase} -Bases: `object` +Bases: `abc.ABC` + +Helper class that provides a standard way to create an ABC using + +inheritance. + +### _async method_ `call_api(self, api, *, response_type = None, **params)` {#TelegramAPIBase-call-api} + +- **Arguments** + + - **api** (_str_) + + - **response\_type** (_Optional\[type\[~\_T\]\]_) + + - **params** (_Any_) + +- **Returns** + + Type: _Any_ + +## _abstract class_ `TelegramAPI` {#TelegramAPI} + +Bases: `alicebot.adapter.telegram.api.TelegramAPIBase` + +Helper class that provides a standard way to create an ABC using + +inheritance. ### _async method_ `add_sticker_to_set(self, *, user_id, name, sticker)` {#TelegramAPI-add-sticker-to-set} diff --git a/docs/api/adapter/telegram/entity.md b/docs/api/adapter/telegram/entity.md new file mode 100644 index 0000000..b18da03 --- /dev/null +++ b/docs/api/adapter/telegram/entity.md @@ -0,0 +1,165 @@ +# alicebot.adapter.telegram.entity + +Telegram Entity 模型。 + +## _abstract class_ `Entity` {#Entity} + +Bases: `alicebot.message.MessageSegment` + +消息字段。 + +本类实现了所有 `Mapping` 类型的方法,这些方法全部是对 `data` 属性的操作。 +本类重写了 `+` 和 `+=` 运算符,可以直接和 `Message`, `MessageSegment` 等类型的对象执行取和运算,返回 `Message` 对象。 +适配器开发者需要继承本类并重写 `get_message_class()` 方法。 + +- **Attributes** + + - **type** - 消息字段类型。 + + - **data** - 消息字段内容。 + +### _method_ `blockquote(text)` {#Entity-blockquote} + +- **Returns** + + Type: _Self_ + +### _method_ `bold(text)` {#Entity-bold} + +- **Returns** + + Type: _Self_ + +### _method_ `bot_command(text)` {#Entity-bot-command} + +- **Returns** + + Type: _Self_ + +### _method_ `cashtag(text)` {#Entity-cashtag} + +- **Returns** + + Type: _Self_ + +### _method_ `code(text)` {#Entity-code} + +- **Returns** + + Type: _Self_ + +### _method_ `custom_emoji(text, custom_emoji_id = None)` {#Entity-custom-emoji} + +- **Arguments** + + - **custom\_emoji\_id** (_Optional\[str\]_) + +- **Returns** + + Type: _Self_ + +### _method_ `email(text)` {#Entity-email} + +- **Returns** + + Type: _Self_ + +### _method_ `expandable_blockquote(text)` {#Entity-expandable-blockquote} + +- **Returns** + + Type: _Self_ + +### _method_ `hashtag(text)` {#Entity-hashtag} + +- **Returns** + + Type: _Self_ + +### _method_ `italic(text)` {#Entity-italic} + +- **Returns** + + Type: _Self_ + +### _method_ `mention(text)` {#Entity-mention} + +- **Returns** + + Type: _Self_ + +### _method_ `phone_number(text)` {#Entity-phone-number} + +- **Returns** + + Type: _Self_ + +### _method_ `pre(text, language = None)` {#Entity-pre} + +- **Arguments** + + - **language** (_Optional\[str\]_) + +- **Returns** + + Type: _Self_ + +### _method_ `spoiler(text)` {#Entity-spoiler} + +- **Returns** + + Type: _Self_ + +### _method_ `strikethrough(text)` {#Entity-strikethrough} + +- **Returns** + + Type: _Self_ + +### _method_ `text_link(text, url = None)` {#Entity-text-link} + +- **Arguments** + + - **url** (_Optional\[str\]_) + +- **Returns** + + Type: _Self_ + +### _method_ `text_mention(text, user = None)` {#Entity-text-mention} + +- **Arguments** + + - **user** (_Optional\[alicebot.adapter.telegram.model.User\]_) + +- **Returns** + + Type: _Self_ + +### _method_ `underline(text)` {#Entity-underline} + +- **Returns** + + Type: _Self_ + +### _method_ `url(text)` {#Entity-url} + +- **Returns** + + Type: _Self_ + +## _abstract class_ `Entity[TelegramMessage]` {#Entity-TelegramMessage-} + +Bases: `alicebot.adapter.telegram.entity.Entity` + +消息字段。 + +本类实现了所有 `Mapping` 类型的方法,这些方法全部是对 `data` 属性的操作。 +本类重写了 `+` 和 `+=` 运算符,可以直接和 `Message`, `MessageSegment` 等类型的对象执行取和运算,返回 `Message` 对象。 +适配器开发者需要继承本类并重写 `get_message_class()` 方法。 + +- **Attributes** + + - **type** - 消息字段类型。 + + - **data** - 消息字段内容。 diff --git a/docs/api/adapter/telegram/event/base.md b/docs/api/adapter/telegram/event/base.md new file mode 100644 index 0000000..8f6e102 --- /dev/null +++ b/docs/api/adapter/telegram/event/base.md @@ -0,0 +1,19 @@ +# alicebot.adapter.telegram.event.base + +事件基类。 + +## _class_ `TelegramEvent` {#TelegramEvent} + +Bases: `alicebot.event.Event[TelegramAdapter]` + +Telegram Event Baseclass. + +- **Attributes** + + - **update** (_alicebot.adapter.telegram.model.Update_) + +### _readonly property_ `update_id` {#TelegramEvent-update-id} + +Type: _int_ + +The update's unique identifier. diff --git a/docs/api/adapter/telegram/event/index.md b/docs/api/adapter/telegram/event/index.md new file mode 100644 index 0000000..8ee4949 --- /dev/null +++ b/docs/api/adapter/telegram/event/index.md @@ -0,0 +1,3 @@ +# alicebot.adapter.telegram.event + +Telegram 适配器事件。 diff --git a/docs/api/adapter/telegram/event/message.md b/docs/api/adapter/telegram/event/message.md new file mode 100644 index 0000000..44f90f2 --- /dev/null +++ b/docs/api/adapter/telegram/event/message.md @@ -0,0 +1,71 @@ +# alicebot.adapter.telegram.event.message + +Telegram 适配器事件。 + +## _class_ `MessageEvent` {#MessageEvent} + +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent`, `alicebot.event.MessageEvent[TelegramAdapter]` + +New incoming message of any kind - text, photo, sticker, etc. + +### _method_ `get_message(self)` {#MessageEvent-get-message} + +获取 TelegramMessage 对象。 + +- **Returns** + + Type: _alicebot.adapter.telegram.message.TelegramMessage_ + + TelegramMessage 对象。 + +### _method_ `get_plain_text(self)` {#MessageEvent-get-plain-text} + +获取消息的纯文本内容。 + +- **Returns** + + Type: _str_ + + 消息的纯文本内容。 + +### _method_ `get_sender_id(self)` {#MessageEvent-get-sender-id} + +获取消息的发送者的唯一标识符。 + +- **Returns** + + Type: _Union\[NoneType, int, str\]_ + + 消息的发送者的唯一标识符。 + +### _readonly property_ `message` {#MessageEvent-message} + +Type: _alicebot.adapter.telegram.model.Message_ + +The message object. + +### _async method_ `reply(self, message, disable_notification = None, protect_content = None, message_effect_id = None, reply_parameters = None, reply_markup = None, **kwargs)` {#MessageEvent-reply} + +回复消息。 + +- **Arguments** + + - **message** (_Union\[str, alicebot.adapter.telegram.message.TelegramMessage, alicebot.adapter.telegram.media.TelegramMedia\]_) - 回复消息的内容。 + + - **disable\_notification** (_Optional\[bool\]_) + + - **protect\_content** (_Optional\[bool\]_) + + - **message\_effect\_id** (_Optional\[str\]_) + + - **reply\_parameters** (_Optional\[alicebot.adapter.telegram.model.ReplyParameters\]_) + + - **reply\_markup** (_Union\[alicebot.adapter.telegram.model.InlineKeyboardMarkup, alicebot.adapter.telegram.model.ReplyKeyboardMarkup, alicebot.adapter.telegram.model.ReplyKeyboardRemove, alicebot.adapter.telegram.model.ForceReply, NoneType\]_) + + - **kwargs** (_Any_) + +- **Returns** + + Type: _Any_ + + 回复消息动作的响应。 diff --git a/docs/api/adapter/telegram/event.md b/docs/api/adapter/telegram/event/other.md similarity index 63% rename from docs/api/adapter/telegram/event.md rename to docs/api/adapter/telegram/event/other.md index 0fa0c92..bbf579e 100644 --- a/docs/api/adapter/telegram/event.md +++ b/docs/api/adapter/telegram/event/other.md @@ -1,94 +1,10 @@ -# alicebot.adapter.telegram.event +# alicebot.adapter.telegram.event.other Telegram 适配器事件。 -## _class_ `TelegramEvent` {#TelegramEvent} - -Bases: `alicebot.event.Event[TelegramAdapter]` - -Telegram Event Baseclass. - -- **Attributes** - - - **update** (_alicebot.adapter.telegram.model.Update_) - -### _readonly property_ `update_id` {#TelegramEvent-update-id} - -Type: _int_ - -The update's unique identifier. - -## _class_ `MessageEvent` {#MessageEvent} - -Bases: `alicebot.adapter.telegram.event.TelegramEvent`, `alicebot.event.MessageEvent[TelegramAdapter]` - -New incoming message of any kind - text, photo, sticker, etc. - -### _method_ `get_message(self)` {#MessageEvent-get-message} - -获取 TelegramMessage 对象。 - -- **Returns** - - Type: _alicebot.adapter.telegram.message.TelegramMessage_ - - TelegramMessage 对象。 - -### _method_ `get_plain_text(self)` {#MessageEvent-get-plain-text} - -获取消息的纯文本内容。 - -- **Returns** - - Type: _str_ - - 消息的纯文本内容。 - -### _method_ `get_sender_id(self)` {#MessageEvent-get-sender-id} - -获取消息的发送者的唯一标识符。 - -- **Returns** - - Type: _Union\[NoneType, int, str\]_ - - 消息的发送者的唯一标识符。 - -### _readonly property_ `message` {#MessageEvent-message} - -Type: _alicebot.adapter.telegram.model.Message_ - -The message object. - -### _async method_ `reply(self, message, disable_notification = None, protect_content = None, message_effect_id = None, reply_parameters = None, reply_markup = None, **kwargs)` {#MessageEvent-reply} - -回复消息。 - -- **Arguments** - - - **message** (_Union\[str, alicebot.adapter.telegram.message.TelegramMessage, alicebot.adapter.telegram.media.TelegramMedia\]_) - 回复消息的内容。 - - - **disable\_notification** (_Optional\[bool\]_) - - - **protect\_content** (_Optional\[bool\]_) - - - **message\_effect\_id** (_Optional\[str\]_) - - - **reply\_parameters** (_Optional\[alicebot.adapter.telegram.model.ReplyParameters\]_) - - - **reply\_markup** (_Union\[alicebot.adapter.telegram.model.InlineKeyboardMarkup, alicebot.adapter.telegram.model.ReplyKeyboardMarkup, alicebot.adapter.telegram.model.ReplyKeyboardRemove, alicebot.adapter.telegram.model.ForceReply, NoneType\]_) - - - **kwargs** (_Any_) - -- **Returns** - - Type: _Any_ - - 回复消息动作的响应。 - ## _class_ `EditedMessageEvent` {#EditedMessageEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New version of a message that is known to the bot and was edited. @@ -100,9 +16,9 @@ The edited_message object. ## _class_ `ChannelPostEvent` {#ChannelPostEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` -New incoming channel post of any kind - text, photo, sticker, etc. +New incoming channel post of any kind - text, photo, sticker, etc.. ### _readonly property_ `channel_post` {#ChannelPostEvent-channel-post} @@ -112,7 +28,7 @@ The channel_post object. ## _class_ `EditedChannelPostEvent` {#EditedChannelPostEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New version of a channel post that is known to the bot and was edited. @@ -124,9 +40,9 @@ The edited_channel_post object. ## _class_ `BusinessConnectionEvent` {#BusinessConnectionEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` -The bot was connected to or disconnected from a business account. +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` {#BusinessConnectionEvent-business-connection} @@ -136,7 +52,7 @@ The business_connection object. ## _class_ `BusinessMessageEvent` {#BusinessMessageEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New message from a connected business account. @@ -148,7 +64,7 @@ The business_message object. ## _class_ `EditedBusinessMessageEvent` {#EditedBusinessMessageEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New version of a message from a connected business account. @@ -160,7 +76,7 @@ The edited_business_message object. ## _class_ `DeletedBusinessMessagesEvent` {#DeletedBusinessMessagesEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` Messages were deleted from a connected business account. @@ -172,7 +88,7 @@ The deleted_business_messages object. ## _class_ `MessageReactionEvent` {#MessageReactionEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` A reaction to a message was changed by a user. @@ -184,7 +100,7 @@ The message_reaction object. ## _class_ `MessageReactionCountEvent` {#MessageReactionCountEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` Reactions to a message with anonymous reactions were changed. @@ -196,7 +112,7 @@ The message_reaction_count object. ## _class_ `InlineQueryEvent` {#InlineQueryEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New incoming inline query. @@ -208,7 +124,7 @@ The inline_query object. ## _class_ `ChosenInlineResultEvent` {#ChosenInlineResultEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +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. @@ -220,7 +136,7 @@ The chosen_inline_result object. ## _class_ `CallbackQueryEvent` {#CallbackQueryEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New incoming callback query. @@ -232,7 +148,7 @@ The callback_query object. ## _class_ `ShippingQueryEvent` {#ShippingQueryEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New incoming shipping query. @@ -244,7 +160,7 @@ The shipping_query object. ## _class_ `PreCheckoutQueryEvent` {#PreCheckoutQueryEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New incoming pre-checkout query. @@ -254,9 +170,21 @@ Type: _alicebot.adapter.telegram.model.PreCheckoutQuery_ The pre_checkout_query object. +## _class_ `PurchasedPaidMediaEvent` {#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` {#PurchasedPaidMediaEvent-purchased-paid-media} + +Type: _alicebot.adapter.telegram.model.PaidMediaPurchased_ + +The purchased_paid_media object. + ## _class_ `PollEvent` {#PollEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` New poll state. @@ -268,7 +196,7 @@ The poll object. ## _class_ `PollAnswerEvent` {#PollAnswerEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` A user changed their answer in a non-anonymous poll. @@ -280,7 +208,7 @@ The poll_answer object. ## _class_ `MyChatMemberEvent` {#MyChatMemberEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` The bot's chat member status was updated in a chat. @@ -292,7 +220,7 @@ The my_chat_member object. ## _class_ `ChatMemberEvent` {#ChatMemberEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` A chat member's status was updated in a chat. @@ -304,7 +232,7 @@ The chat_member object. ## _class_ `ChatJoinRequestEvent` {#ChatJoinRequestEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` A request to join the chat has been sent. @@ -316,7 +244,7 @@ The chat_join_request object. ## _class_ `ChatBoostEvent` {#ChatBoostEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` A chat boost was added or changed. @@ -328,7 +256,7 @@ The chat_boost object. ## _class_ `RemovedChatBoostEvent` {#RemovedChatBoostEvent} -Bases: `alicebot.adapter.telegram.event.TelegramEvent` +Bases: `alicebot.adapter.telegram.event.base.TelegramEvent` A boost was removed from a chat. diff --git a/docs/api/adapter/telegram/index.md b/docs/api/adapter/telegram/index.md index c6ac09a..3dd5a31 100644 --- a/docs/api/adapter/telegram/index.md +++ b/docs/api/adapter/telegram/index.md @@ -46,7 +46,7 @@ Telegram 适配器配置 - **api\_timeout** (_int_) - 进行 API 调用时等待返回响应的超时时间。 -### _async method_ `call_api(self, api, **params)` {#TelegramAdapter-call-api} +### _async method_ `call_api(self, api, *, response_type = None, **params)` {#TelegramAdapter-call-api} 调用 Telegram Bot API,协程会等待直到获得 API 响应。 @@ -54,11 +54,13 @@ Telegram 适配器配置 - **api** (_str_) - API 名称。 + - **response\_type** (_Optional\[type\[~\_T\]\]_) - API 响应类型。 + - **\*\*params** (_Any_) - API 参数。 - **Returns** - Type: _Any_ + Type: _Optional\[~\_T\]_ API 响应。 diff --git a/docs/api/adapter/telegram/media.md b/docs/api/adapter/telegram/media.md index 7024d84..2ed3735 100644 --- a/docs/api/adapter/telegram/media.md +++ b/docs/api/adapter/telegram/media.md @@ -6,21 +6,21 @@ Telegram Media 模型。 Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. - **Attributes** - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -34,24 +34,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Photo` {#Photo} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -65,15 +65,15 @@ A base class for creating Pydantic models. - **has\_spoiler** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -87,24 +87,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Audio` {#Audio} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -122,15 +122,15 @@ A base class for creating Pydantic models. - **thumbnail** (_Union\[bytes, tuple\[str, bytes\], str, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -144,24 +144,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Document` {#Document} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -175,15 +175,15 @@ A base class for creating Pydantic models. - **disable\_content\_type\_detection** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -197,24 +197,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Video` {#Video} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -238,15 +238,15 @@ A base class for creating Pydantic models. - **supports\_streaming** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -260,24 +260,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Animation` {#Animation} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -299,15 +299,15 @@ A base class for creating Pydantic models. - **has\_spoiler** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -321,24 +321,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Voice` {#Voice} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -350,15 +350,15 @@ A base class for creating Pydantic models. - **duration** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -372,24 +372,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `VideoNote` {#VideoNote} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -403,15 +403,15 @@ A base class for creating Pydantic models. - **thumbnail** (_Union\[bytes, tuple\[str, bytes\], str, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -425,24 +425,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PaidMedia` {#PaidMedia} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -458,15 +458,15 @@ A base class for creating Pydantic models. - **show\_caption\_above\_media** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -480,24 +480,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MediaGroup` {#MediaGroup} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -505,15 +505,15 @@ A base class for creating Pydantic models. - **media** (_Union\[list\[alicebot.adapter.telegram.model.InputMediaAudio\], list\[alicebot.adapter.telegram.model.InputMediaDocument\], list\[alicebot.adapter.telegram.model.InputMediaPhoto\], list\[alicebot.adapter.telegram.model.InputMediaVideo\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -527,24 +527,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Location` {#Location} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -562,15 +562,15 @@ A base class for creating Pydantic models. - **proximity\_alert\_radius** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -584,24 +584,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Venue` {#Venue} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -623,15 +623,15 @@ A base class for creating Pydantic models. - **google\_place\_type** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -645,24 +645,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Contact` {#Contact} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -676,15 +676,15 @@ A base class for creating Pydantic models. - **vcard** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -698,24 +698,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Poll` {#Poll} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -741,15 +741,15 @@ A base class for creating Pydantic models. - **is\_closed** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -763,24 +763,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Dice` {#Dice} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -788,15 +788,15 @@ A base class for creating Pydantic models. - **emoji** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -810,24 +810,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatAction` {#ChatAction} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -835,15 +835,15 @@ A base class for creating Pydantic models. - **action** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -857,24 +857,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Sticker` {#Sticker} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -884,15 +884,15 @@ A base class for creating Pydantic models. - **emoji** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -906,24 +906,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Invoice` {#Invoice} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -971,15 +971,15 @@ A base class for creating Pydantic models. - **is\_flexible** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -993,24 +993,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Game` {#Game} Bases: `alicebot.adapter.telegram.media.TelegramMedia` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1018,15 +1018,15 @@ A base class for creating Pydantic models. - **game\_short\_name** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1040,15 +1040,15 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. diff --git a/docs/api/adapter/telegram/message.md b/docs/api/adapter/telegram/message.md index 9319dd4..c290c45 100644 --- a/docs/api/adapter/telegram/message.md +++ b/docs/api/adapter/telegram/message.md @@ -42,62 +42,10 @@ Telegram 消息。 ## _class_ `TelegramMessageSegment` {#TelegramMessageSegment} -Bases: `alicebot.message.MessageSegment[TelegramMessage]` +Bases: `alicebot.adapter.telegram.entity.Entity[TelegramMessage]` Telegram 消息字段,对应 Telegram 的 MessageEntity。 -### _method_ `blockquote(text)` {#TelegramMessageSegment-blockquote} - -- **Returns** - - Type: _Self_ - -### _method_ `bold(text)` {#TelegramMessageSegment-bold} - -- **Returns** - - Type: _Self_ - -### _method_ `bot_command(text)` {#TelegramMessageSegment-bot-command} - -- **Returns** - - Type: _Self_ - -### _method_ `cashtag(text)` {#TelegramMessageSegment-cashtag} - -- **Returns** - - Type: _Self_ - -### _method_ `code(text)` {#TelegramMessageSegment-code} - -- **Returns** - - Type: _Self_ - -### _method_ `custom_emoji(text, custom_emoji_id)` {#TelegramMessageSegment-custom-emoji} - -- **Arguments** - - - **custom\_emoji\_id** (_str_) - -- **Returns** - - Type: _Self_ - -### _method_ `email(text)` {#TelegramMessageSegment-email} - -- **Returns** - - Type: _Self_ - -### _method_ `expandable_blockquote(text)` {#TelegramMessageSegment-expandable-blockquote} - -- **Returns** - - Type: _Self_ - ### _method_ `from_str(msg)` {#TelegramMessageSegment-from-str} 用于将 `str` 转换为消息字段,子类应重写此方法。 @@ -118,12 +66,6 @@ Telegram 消息字段,对应 Telegram 的 MessageEntity。 消息类。 -### _method_ `hashtag(text)` {#TelegramMessageSegment-hashtag} - -- **Returns** - - Type: _Self_ - ### _method_ `is_text(self)` {#TelegramMessageSegment-is-text} 是否是纯文本消息字段。 @@ -134,84 +76,12 @@ Telegram 消息字段,对应 Telegram 的 MessageEntity。 是否是纯文本消息字段。 -### _method_ `italic(text)` {#TelegramMessageSegment-italic} - -- **Returns** - - Type: _Self_ - ### _readonly property_ `length` {#TelegramMessageSegment-length} Type: _int_ -### _method_ `mention(text)` {#TelegramMessageSegment-mention} - -- **Returns** - - Type: _Self_ - -### _method_ `phone_number(text)` {#TelegramMessageSegment-phone-number} - -- **Returns** - - Type: _Self_ - -### _method_ `pre(text, language)` {#TelegramMessageSegment-pre} - -- **Arguments** - - - **language** (_str_) - -- **Returns** - - Type: _Self_ - -### _method_ `spoiler(text)` {#TelegramMessageSegment-spoiler} - -- **Returns** - - Type: _Self_ - -### _method_ `strikethrough(text)` {#TelegramMessageSegment-strikethrough} - -- **Returns** - - Type: _Self_ - ### _method_ `text(text)` {#TelegramMessageSegment-text} - **Returns** Type: _Self_ - -### _method_ `text_link(text, url)` {#TelegramMessageSegment-text-link} - -- **Arguments** - - - **url** (_str_) - -- **Returns** - - Type: _Self_ - -### _method_ `text_mention(text, user)` {#TelegramMessageSegment-text-mention} - -- **Arguments** - - - **user** (_alicebot.adapter.telegram.model.User_) - -- **Returns** - - Type: _Self_ - -### _method_ `underline(text)` {#TelegramMessageSegment-underline} - -- **Returns** - - Type: _Self_ - -### _method_ `url(text)` {#TelegramMessageSegment-url} - -- **Returns** - - Type: _Self_ diff --git a/docs/api/adapter/telegram/model.md b/docs/api/adapter/telegram/model.md index 0df16d9..3a89787 100644 --- a/docs/api/adapter/telegram/model.md +++ b/docs/api/adapter/telegram/model.md @@ -6,7 +6,7 @@ Telegram 模型。 Bases: `pydantic.main.BaseModel`, `typing.Generic` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -20,15 +20,15 @@ A base class for creating Pydantic models. - **error\_code** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -42,24 +42,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `User` {#User} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -91,15 +91,15 @@ A base class for creating Pydantic models. - **has\_main\_web\_app** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -113,24 +113,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Chat` {#Chat} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -150,15 +150,15 @@ A base class for creating Pydantic models. - **is\_forum** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -172,24 +172,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageOriginUser` {#MessageOriginUser} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -201,15 +201,15 @@ A base class for creating Pydantic models. - **sender\_user** (_User_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -223,24 +223,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageOriginHiddenUser` {#MessageOriginHiddenUser} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -252,15 +252,15 @@ A base class for creating Pydantic models. - **sender\_user\_name** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -274,24 +274,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageOriginChat` {#MessageOriginChat} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -305,15 +305,15 @@ A base class for creating Pydantic models. - **author\_signature** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -327,24 +327,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageOriginChannel` {#MessageOriginChannel} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -360,15 +360,15 @@ A base class for creating Pydantic models. - **author\_signature** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -382,24 +382,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `LinkPreviewOptions` {#LinkPreviewOptions} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -415,15 +415,15 @@ A base class for creating Pydantic models. - **show\_above\_text** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -437,24 +437,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PhotoSize` {#PhotoSize} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -470,15 +470,15 @@ A base class for creating Pydantic models. - **file\_size** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -492,24 +492,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Animation` {#Animation} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -533,15 +533,15 @@ A base class for creating Pydantic models. - **file\_size** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -555,24 +555,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Audio` {#Audio} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -596,15 +596,15 @@ A base class for creating Pydantic models. - **thumbnail** (_Optional\[alicebot.adapter.telegram.model.PhotoSize\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -618,24 +618,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Document` {#Document} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -653,15 +653,15 @@ A base class for creating Pydantic models. - **file\_size** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -675,24 +675,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PaidMediaPreview` {#PaidMediaPreview} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -706,15 +706,15 @@ A base class for creating Pydantic models. - **duration** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -728,24 +728,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PaidMediaPhoto` {#PaidMediaPhoto} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -755,15 +755,15 @@ A base class for creating Pydantic models. - **photo** (_list\[alicebot.adapter.telegram.model.PhotoSize\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -777,24 +777,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Video` {#Video} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -818,15 +818,15 @@ A base class for creating Pydantic models. - **file\_size** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -840,24 +840,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PaidMediaVideo` {#PaidMediaVideo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -867,15 +867,15 @@ A base class for creating Pydantic models. - **video** (_Video_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -889,24 +889,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PaidMediaInfo` {#PaidMediaInfo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -916,15 +916,15 @@ A base class for creating Pydantic models. - **paid\_media** (_list\[typing.Union\[alicebot.adapter.telegram.model.PaidMediaPreview, alicebot.adapter.telegram.model.PaidMediaPhoto, alicebot.adapter.telegram.model.PaidMediaVideo\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -938,24 +938,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `File` {#File} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -969,15 +969,15 @@ A base class for creating Pydantic models. - **file\_path** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -991,24 +991,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MaskPosition` {#MaskPosition} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1022,15 +1022,15 @@ A base class for creating Pydantic models. - **scale** (_float_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1044,24 +1044,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Sticker` {#Sticker} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1097,15 +1097,15 @@ A base class for creating Pydantic models. - **file\_size** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1119,24 +1119,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Story` {#Story} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1146,15 +1146,15 @@ A base class for creating Pydantic models. - **id** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1168,24 +1168,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `VideoNote` {#VideoNote} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1203,15 +1203,15 @@ A base class for creating Pydantic models. - **file\_size** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1225,24 +1225,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Voice` {#Voice} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1258,15 +1258,15 @@ A base class for creating Pydantic models. - **file\_size** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1280,24 +1280,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Contact` {#Contact} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1313,15 +1313,15 @@ A base class for creating Pydantic models. - **vcard** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1335,24 +1335,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Dice` {#Dice} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1362,15 +1362,15 @@ A base class for creating Pydantic models. - **value** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1384,24 +1384,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageEntity` {#MessageEntity} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1421,15 +1421,15 @@ A base class for creating Pydantic models. - **custom\_emoji\_id** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1443,24 +1443,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Game` {#Game} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1478,15 +1478,15 @@ A base class for creating Pydantic models. - **animation** (_Optional\[alicebot.adapter.telegram.model.Animation\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1500,24 +1500,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Giveaway` {#Giveaway} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1541,15 +1541,15 @@ A base class for creating Pydantic models. - **premium\_subscription\_month\_count** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1563,24 +1563,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `GiveawayWinners` {#GiveawayWinners} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1610,15 +1610,15 @@ A base class for creating Pydantic models. - **prize\_description** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1632,24 +1632,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Invoice` {#Invoice} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1665,15 +1665,15 @@ A base class for creating Pydantic models. - **total\_amount** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1687,24 +1687,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Location` {#Location} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1722,15 +1722,15 @@ A base class for creating Pydantic models. - **proximity\_alert\_radius** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1744,24 +1744,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PollOption` {#PollOption} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1773,15 +1773,15 @@ A base class for creating Pydantic models. - **voter\_count** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1795,24 +1795,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Poll` {#Poll} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1846,15 +1846,15 @@ A base class for creating Pydantic models. - **close\_date** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1868,24 +1868,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Venue` {#Venue} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1905,15 +1905,15 @@ A base class for creating Pydantic models. - **google\_place\_type** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -1927,24 +1927,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ExternalReplyInfo` {#ExternalReplyInfo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -1998,15 +1998,15 @@ A base class for creating Pydantic models. - **venue** (_Optional\[alicebot.adapter.telegram.model.Venue\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2020,24 +2020,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `TextQuote` {#TextQuote} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2051,15 +2051,15 @@ A base class for creating Pydantic models. - **is\_manual** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2073,24 +2073,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageAutoDeleteTimerChanged` {#MessageAutoDeleteTimerChanged} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2098,15 +2098,15 @@ A base class for creating Pydantic models. - **message\_auto\_delete\_time** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2120,24 +2120,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InaccessibleMessage` {#InaccessibleMessage} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2149,15 +2149,15 @@ A base class for creating Pydantic models. - **date** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2171,24 +2171,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ShippingAddress` {#ShippingAddress} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2206,15 +2206,15 @@ A base class for creating Pydantic models. - **post\_code** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2228,24 +2228,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `OrderInfo` {#OrderInfo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2259,15 +2259,15 @@ A base class for creating Pydantic models. - **shipping\_address** (_Optional\[alicebot.adapter.telegram.model.ShippingAddress\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2281,24 +2281,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `SuccessfulPayment` {#SuccessfulPayment} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2318,15 +2318,15 @@ A base class for creating Pydantic models. - **provider\_payment\_charge\_id** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2340,24 +2340,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `RefundedPayment` {#RefundedPayment} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2373,15 +2373,15 @@ A base class for creating Pydantic models. - **provider\_payment\_charge\_id** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2395,24 +2395,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `SharedUser` {#SharedUser} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2428,15 +2428,15 @@ A base class for creating Pydantic models. - **photo** (_Optional\[list\[alicebot.adapter.telegram.model.PhotoSize\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2450,24 +2450,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `UsersShared` {#UsersShared} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2477,15 +2477,15 @@ A base class for creating Pydantic models. - **users** (_list\[alicebot.adapter.telegram.model.SharedUser\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2499,24 +2499,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatShared` {#ChatShared} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2532,15 +2532,15 @@ A base class for creating Pydantic models. - **photo** (_Optional\[list\[alicebot.adapter.telegram.model.PhotoSize\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2554,24 +2554,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `WriteAccessAllowed` {#WriteAccessAllowed} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2583,15 +2583,15 @@ A base class for creating Pydantic models. - **from\_attachment\_menu** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2605,24 +2605,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportFile` {#PassportFile} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2636,15 +2636,15 @@ A base class for creating Pydantic models. - **file\_date** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2658,24 +2658,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `EncryptedPassportElement` {#EncryptedPassportElement} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2701,15 +2701,15 @@ A base class for creating Pydantic models. - **hash** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2723,24 +2723,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `EncryptedCredentials` {#EncryptedCredentials} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2752,15 +2752,15 @@ A base class for creating Pydantic models. - **secret** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2774,24 +2774,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportData` {#PassportData} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2801,15 +2801,15 @@ A base class for creating Pydantic models. - **credentials** (_EncryptedCredentials_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2823,24 +2823,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ProximityAlertTriggered` {#ProximityAlertTriggered} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2852,15 +2852,15 @@ A base class for creating Pydantic models. - **distance** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2874,24 +2874,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBoostAdded` {#ChatBoostAdded} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2899,15 +2899,15 @@ A base class for creating Pydantic models. - **boost\_count** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2921,24 +2921,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BackgroundFillSolid` {#BackgroundFillSolid} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -2948,15 +2948,15 @@ A base class for creating Pydantic models. - **color** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -2970,24 +2970,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BackgroundFillGradient` {#BackgroundFillGradient} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3001,15 +3001,15 @@ A base class for creating Pydantic models. - **rotation\_angle** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3023,24 +3023,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BackgroundFillFreeformGradient` {#BackgroundFillFreeformGradient} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3050,15 +3050,15 @@ A base class for creating Pydantic models. - **colors** (_list\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3072,24 +3072,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BackgroundTypeFill` {#BackgroundTypeFill} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3101,15 +3101,15 @@ A base class for creating Pydantic models. - **dark\_theme\_dimming** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3123,24 +3123,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BackgroundTypeWallpaper` {#BackgroundTypeWallpaper} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3156,15 +3156,15 @@ A base class for creating Pydantic models. - **is\_moving** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3178,24 +3178,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BackgroundTypePattern` {#BackgroundTypePattern} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3213,15 +3213,15 @@ A base class for creating Pydantic models. - **is\_moving** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3235,24 +3235,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BackgroundTypeChatTheme` {#BackgroundTypeChatTheme} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3262,15 +3262,15 @@ A base class for creating Pydantic models. - **theme\_name** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3284,24 +3284,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBackground` {#ChatBackground} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3309,15 +3309,15 @@ A base class for creating Pydantic models. - **type** (_Union\[alicebot.adapter.telegram.model.BackgroundTypeFill, alicebot.adapter.telegram.model.BackgroundTypeWallpaper, alicebot.adapter.telegram.model.BackgroundTypePattern, alicebot.adapter.telegram.model.BackgroundTypeChatTheme\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3331,24 +3331,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ForumTopicCreated` {#ForumTopicCreated} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3360,15 +3360,15 @@ A base class for creating Pydantic models. - **icon\_custom\_emoji\_id** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3382,24 +3382,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ForumTopicEdited` {#ForumTopicEdited} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3409,15 +3409,15 @@ A base class for creating Pydantic models. - **icon\_custom\_emoji\_id** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3431,38 +3431,38 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ForumTopicClosed` {#ForumTopicClosed} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. - **Attributes** - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3476,38 +3476,38 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ForumTopicReopened` {#ForumTopicReopened} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. - **Attributes** - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3521,38 +3521,38 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `GeneralForumTopicHidden` {#GeneralForumTopicHidden} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. - **Attributes** - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3566,38 +3566,38 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `GeneralForumTopicUnhidden` {#GeneralForumTopicUnhidden} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. - **Attributes** - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3611,24 +3611,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `GiveawayCreated` {#GiveawayCreated} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3636,15 +3636,15 @@ A base class for creating Pydantic models. - **prize\_star\_count** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3658,24 +3658,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `GiveawayCompleted` {#GiveawayCompleted} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3689,15 +3689,15 @@ A base class for creating Pydantic models. - **is\_star\_giveaway** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3711,24 +3711,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `VideoChatScheduled` {#VideoChatScheduled} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3736,15 +3736,15 @@ A base class for creating Pydantic models. - **start\_date** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3758,38 +3758,38 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `VideoChatStarted` {#VideoChatStarted} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. - **Attributes** - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3803,24 +3803,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `VideoChatEnded` {#VideoChatEnded} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3828,15 +3828,15 @@ A base class for creating Pydantic models. - **duration** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3850,24 +3850,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `VideoChatParticipantsInvited` {#VideoChatParticipantsInvited} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3875,15 +3875,15 @@ A base class for creating Pydantic models. - **users** (_list\[alicebot.adapter.telegram.model.User\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3897,24 +3897,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `WebAppData` {#WebAppData} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3924,15 +3924,15 @@ A base class for creating Pydantic models. - **button\_text** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3946,24 +3946,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `WebAppInfo` {#WebAppInfo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -3971,15 +3971,15 @@ A base class for creating Pydantic models. - **url** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -3993,24 +3993,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `LoginUrl` {#LoginUrl} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4024,15 +4024,15 @@ A base class for creating Pydantic models. - **request\_write\_access** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4046,24 +4046,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `SwitchInlineQueryChosenChat` {#SwitchInlineQueryChosenChat} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4079,15 +4079,15 @@ A base class for creating Pydantic models. - **allow\_channel\_chats** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4101,38 +4101,38 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `CallbackGame` {#CallbackGame} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. - **Attributes** - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4146,24 +4146,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineKeyboardButton` {#InlineKeyboardButton} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4189,15 +4189,15 @@ A base class for creating Pydantic models. - **pay** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4211,24 +4211,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineKeyboardMarkup` {#InlineKeyboardMarkup} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4236,15 +4236,15 @@ A base class for creating Pydantic models. - **inline\_keyboard** (_list\[list\[alicebot.adapter.telegram.model.InlineKeyboardButton\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4258,24 +4258,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Message` {#Message} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4451,15 +4451,15 @@ A base class for creating Pydantic models. - **reply\_markup** (_Optional\[alicebot.adapter.telegram.model.InlineKeyboardMarkup\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4473,24 +4473,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BusinessConnection` {#BusinessConnection} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4508,15 +4508,15 @@ A base class for creating Pydantic models. - **is\_enabled** (_bool_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4530,24 +4530,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BusinessMessagesDeleted` {#BusinessMessagesDeleted} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4559,15 +4559,15 @@ A base class for creating Pydantic models. - **message\_ids** (_list\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4581,24 +4581,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ReactionTypeEmoji` {#ReactionTypeEmoji} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4608,15 +4608,15 @@ A base class for creating Pydantic models. - **emoji** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4630,24 +4630,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ReactionTypeCustomEmoji` {#ReactionTypeCustomEmoji} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4657,15 +4657,15 @@ A base class for creating Pydantic models. - **custom\_emoji\_id** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4679,24 +4679,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ReactionTypePaid` {#ReactionTypePaid} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4704,15 +4704,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4726,24 +4726,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageReactionUpdated` {#MessageReactionUpdated} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4763,15 +4763,15 @@ A base class for creating Pydantic models. - **new\_reaction** (_list\[typing.Union\[alicebot.adapter.telegram.model.ReactionTypeEmoji, alicebot.adapter.telegram.model.ReactionTypeCustomEmoji, alicebot.adapter.telegram.model.ReactionTypePaid\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4785,24 +4785,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ReactionCount` {#ReactionCount} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4812,15 +4812,15 @@ A base class for creating Pydantic models. - **total\_count** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4834,24 +4834,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageReactionCountUpdated` {#MessageReactionCountUpdated} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4865,15 +4865,15 @@ A base class for creating Pydantic models. - **reactions** (_list\[alicebot.adapter.telegram.model.ReactionCount\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4887,24 +4887,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQuery` {#InlineQuery} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4922,15 +4922,15 @@ A base class for creating Pydantic models. - **location** (_Optional\[alicebot.adapter.telegram.model.Location\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4944,24 +4944,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChosenInlineResult` {#ChosenInlineResult} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -4977,15 +4977,15 @@ A base class for creating Pydantic models. - **query** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -4999,24 +4999,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `CallbackQuery` {#CallbackQuery} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5036,15 +5036,15 @@ A base class for creating Pydantic models. - **game\_short\_name** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5058,24 +5058,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ShippingQuery` {#ShippingQuery} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5089,15 +5089,15 @@ A base class for creating Pydantic models. - **shipping\_address** (_ShippingAddress_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5111,24 +5111,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PreCheckoutQuery` {#PreCheckoutQuery} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5148,15 +5148,15 @@ A base class for creating Pydantic models. - **order\_info** (_Optional\[alicebot.adapter.telegram.model.OrderInfo\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5170,24 +5170,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PaidMediaPurchased` {#PaidMediaPurchased} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5197,15 +5197,15 @@ A base class for creating Pydantic models. - **paid\_media\_payload** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5219,24 +5219,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PollAnswer` {#PollAnswer} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5250,15 +5250,15 @@ A base class for creating Pydantic models. - **option\_ids** (_list\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5272,24 +5272,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatMemberOwner` {#ChatMemberOwner} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5303,15 +5303,15 @@ A base class for creating Pydantic models. - **custom\_title** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5325,24 +5325,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatMemberAdministrator` {#ChatMemberAdministrator} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5386,15 +5386,15 @@ A base class for creating Pydantic models. - **custom\_title** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5408,24 +5408,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatMemberMember` {#ChatMemberMember} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5437,15 +5437,15 @@ A base class for creating Pydantic models. - **until\_date** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5459,24 +5459,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatMemberRestricted` {#ChatMemberRestricted} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5518,15 +5518,15 @@ A base class for creating Pydantic models. - **until\_date** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5540,24 +5540,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatMemberLeft` {#ChatMemberLeft} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5567,15 +5567,15 @@ A base class for creating Pydantic models. - **user** (_User_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5589,24 +5589,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatMemberBanned` {#ChatMemberBanned} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5618,15 +5618,15 @@ A base class for creating Pydantic models. - **until\_date** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5640,24 +5640,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatInviteLink` {#ChatInviteLink} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5685,15 +5685,15 @@ A base class for creating Pydantic models. - **subscription\_price** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5707,24 +5707,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatMemberUpdated` {#ChatMemberUpdated} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5746,15 +5746,15 @@ A base class for creating Pydantic models. - **via\_chat\_folder\_invite\_link** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5768,24 +5768,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatJoinRequest` {#ChatJoinRequest} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5803,15 +5803,15 @@ A base class for creating Pydantic models. - **invite\_link** (_Optional\[alicebot.adapter.telegram.model.ChatInviteLink\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5825,24 +5825,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBoostSourcePremium` {#ChatBoostSourcePremium} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5852,15 +5852,15 @@ A base class for creating Pydantic models. - **user** (_User_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5874,24 +5874,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBoostSourceGiftCode` {#ChatBoostSourceGiftCode} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5901,15 +5901,15 @@ A base class for creating Pydantic models. - **user** (_User_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5923,24 +5923,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBoostSourceGiveaway` {#ChatBoostSourceGiveaway} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -5956,15 +5956,15 @@ A base class for creating Pydantic models. - **is\_unclaimed** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -5978,24 +5978,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBoost` {#ChatBoost} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6009,15 +6009,15 @@ A base class for creating Pydantic models. - **source** (_Union\[alicebot.adapter.telegram.model.ChatBoostSourcePremium, alicebot.adapter.telegram.model.ChatBoostSourceGiftCode, alicebot.adapter.telegram.model.ChatBoostSourceGiveaway\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6031,24 +6031,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBoostUpdated` {#ChatBoostUpdated} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6058,15 +6058,15 @@ A base class for creating Pydantic models. - **boost** (_ChatBoost_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6080,24 +6080,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatBoostRemoved` {#ChatBoostRemoved} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6111,15 +6111,15 @@ A base class for creating Pydantic models. - **source** (_Union\[alicebot.adapter.telegram.model.ChatBoostSourcePremium, alicebot.adapter.telegram.model.ChatBoostSourceGiftCode, alicebot.adapter.telegram.model.ChatBoostSourceGiveaway\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6133,24 +6133,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Update` {#Update} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6204,15 +6204,15 @@ A base class for creating Pydantic models. - **removed\_chat\_boost** (_Optional\[alicebot.adapter.telegram.model.ChatBoostRemoved\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6226,24 +6226,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `WebhookInfo` {#WebhookInfo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6267,15 +6267,15 @@ A base class for creating Pydantic models. - **allowed\_updates** (_Optional\[list\[str\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6289,24 +6289,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatPhoto` {#ChatPhoto} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6320,15 +6320,15 @@ A base class for creating Pydantic models. - **big\_file\_unique\_id** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6342,24 +6342,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `Birthdate` {#Birthdate} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6371,15 +6371,15 @@ A base class for creating Pydantic models. - **year** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6393,24 +6393,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BusinessIntro` {#BusinessIntro} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6422,15 +6422,15 @@ A base class for creating Pydantic models. - **sticker** (_Optional\[alicebot.adapter.telegram.model.Sticker\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6444,24 +6444,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BusinessLocation` {#BusinessLocation} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6471,15 +6471,15 @@ A base class for creating Pydantic models. - **location** (_Optional\[alicebot.adapter.telegram.model.Location\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6493,24 +6493,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BusinessOpeningHoursInterval` {#BusinessOpeningHoursInterval} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6520,15 +6520,15 @@ A base class for creating Pydantic models. - **closing\_minute** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6542,24 +6542,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BusinessOpeningHours` {#BusinessOpeningHours} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6569,15 +6569,15 @@ A base class for creating Pydantic models. - **opening\_hours** (_list\[alicebot.adapter.telegram.model.BusinessOpeningHoursInterval\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6591,24 +6591,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatPermissions` {#ChatPermissions} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6642,15 +6642,15 @@ A base class for creating Pydantic models. - **can\_manage\_topics** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6664,24 +6664,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatLocation` {#ChatLocation} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6691,15 +6691,15 @@ A base class for creating Pydantic models. - **address** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6713,24 +6713,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatFullInfo` {#ChatFullInfo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6824,15 +6824,15 @@ A base class for creating Pydantic models. - **location** (_Optional\[alicebot.adapter.telegram.model.ChatLocation\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6846,24 +6846,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MessageId` {#MessageId} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6871,15 +6871,15 @@ A base class for creating Pydantic models. - **message\_id** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6893,24 +6893,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ReplyParameters` {#ReplyParameters} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6930,15 +6930,15 @@ A base class for creating Pydantic models. - **quote\_position** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -6952,24 +6952,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputPollOption` {#InputPollOption} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -6981,15 +6981,15 @@ A base class for creating Pydantic models. - **text\_entities** (_Optional\[list\[alicebot.adapter.telegram.model.MessageEntity\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7003,24 +7003,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `UserProfilePhotos` {#UserProfilePhotos} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7030,15 +7030,15 @@ A base class for creating Pydantic models. - **photos** (_list\[list\[alicebot.adapter.telegram.model.PhotoSize\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7052,24 +7052,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `KeyboardButtonRequestUsers` {#KeyboardButtonRequestUsers} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7089,15 +7089,15 @@ A base class for creating Pydantic models. - **request\_photo** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7111,24 +7111,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ChatAdministratorRights` {#ChatAdministratorRights} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7164,15 +7164,15 @@ A base class for creating Pydantic models. - **can\_manage\_topics** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7186,24 +7186,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `KeyboardButtonRequestChat` {#KeyboardButtonRequestChat} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7231,15 +7231,15 @@ A base class for creating Pydantic models. - **request\_photo** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7253,24 +7253,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `KeyboardButtonPollType` {#KeyboardButtonPollType} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7278,15 +7278,15 @@ A base class for creating Pydantic models. - **type** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7300,24 +7300,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `KeyboardButton` {#KeyboardButton} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7337,15 +7337,15 @@ A base class for creating Pydantic models. - **web\_app** (_Optional\[alicebot.adapter.telegram.model.WebAppInfo\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7359,24 +7359,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ReplyKeyboardMarkup` {#ReplyKeyboardMarkup} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7394,15 +7394,15 @@ A base class for creating Pydantic models. - **selective** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7416,24 +7416,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ReplyKeyboardRemove` {#ReplyKeyboardRemove} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7443,15 +7443,15 @@ A base class for creating Pydantic models. - **selective** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7465,24 +7465,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ForceReply` {#ForceReply} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7494,15 +7494,15 @@ A base class for creating Pydantic models. - **selective** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7516,24 +7516,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ForumTopic` {#ForumTopic} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7547,15 +7547,15 @@ A base class for creating Pydantic models. - **icon\_custom\_emoji\_id** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7569,24 +7569,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommand` {#BotCommand} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7596,15 +7596,15 @@ A base class for creating Pydantic models. - **description** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7618,24 +7618,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommandScopeDefault` {#BotCommandScopeDefault} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7643,15 +7643,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7665,24 +7665,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommandScopeAllPrivateChats` {#BotCommandScopeAllPrivateChats} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7690,15 +7690,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7712,24 +7712,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommandScopeAllGroupChats` {#BotCommandScopeAllGroupChats} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7737,15 +7737,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7759,24 +7759,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommandScopeAllChatAdministrators` {#BotCommandScopeAllChatAdministrators} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7784,15 +7784,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7806,24 +7806,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommandScopeChat` {#BotCommandScopeChat} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7833,15 +7833,15 @@ A base class for creating Pydantic models. - **chat\_id** (_Union\[int, str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7855,24 +7855,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommandScopeChatAdministrators` {#BotCommandScopeChatAdministrators} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7882,15 +7882,15 @@ A base class for creating Pydantic models. - **chat\_id** (_Union\[int, str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7904,24 +7904,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotCommandScopeChatMember` {#BotCommandScopeChatMember} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7933,15 +7933,15 @@ A base class for creating Pydantic models. - **user\_id** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -7955,24 +7955,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotName` {#BotName} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -7980,15 +7980,15 @@ A base class for creating Pydantic models. - **name** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8002,24 +8002,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotDescription` {#BotDescription} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8027,15 +8027,15 @@ A base class for creating Pydantic models. - **description** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8049,24 +8049,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `BotShortDescription` {#BotShortDescription} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8074,15 +8074,15 @@ A base class for creating Pydantic models. - **short\_description** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8096,24 +8096,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MenuButtonCommands` {#MenuButtonCommands} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8121,15 +8121,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8143,24 +8143,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MenuButtonWebApp` {#MenuButtonWebApp} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8172,15 +8172,15 @@ A base class for creating Pydantic models. - **web\_app** (_WebAppInfo_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8194,24 +8194,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `MenuButtonDefault` {#MenuButtonDefault} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8219,15 +8219,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8241,24 +8241,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `UserChatBoosts` {#UserChatBoosts} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8266,15 +8266,15 @@ A base class for creating Pydantic models. - **boosts** (_list\[alicebot.adapter.telegram.model.ChatBoost\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8288,24 +8288,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ResponseParameters` {#ResponseParameters} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8315,15 +8315,15 @@ A base class for creating Pydantic models. - **retry\_after** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8337,24 +8337,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputMediaAnimation` {#InputMediaAnimation} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8382,15 +8382,15 @@ A base class for creating Pydantic models. - **has\_spoiler** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8404,24 +8404,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputMediaDocument` {#InputMediaDocument} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8441,15 +8441,15 @@ A base class for creating Pydantic models. - **disable\_content\_type\_detection** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8463,24 +8463,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputMediaAudio` {#InputMediaAudio} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8504,15 +8504,15 @@ A base class for creating Pydantic models. - **title** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8526,24 +8526,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputMediaPhoto` {#InputMediaPhoto} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8563,15 +8563,15 @@ A base class for creating Pydantic models. - **has\_spoiler** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8585,24 +8585,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputMediaVideo` {#InputMediaVideo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8632,15 +8632,15 @@ A base class for creating Pydantic models. - **has\_spoiler** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8654,24 +8654,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputPaidMediaPhoto` {#InputPaidMediaPhoto} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8681,15 +8681,15 @@ A base class for creating Pydantic models. - **media** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8703,24 +8703,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputPaidMediaVideo` {#InputPaidMediaVideo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8740,15 +8740,15 @@ A base class for creating Pydantic models. - **supports\_streaming** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8762,24 +8762,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `StickerSet` {#StickerSet} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8795,15 +8795,15 @@ A base class for creating Pydantic models. - **thumbnail** (_Optional\[alicebot.adapter.telegram.model.PhotoSize\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8817,24 +8817,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputSticker` {#InputSticker} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8850,15 +8850,15 @@ A base class for creating Pydantic models. - **keywords** (_Optional\[list\[str\]\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8872,24 +8872,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultsButton` {#InlineQueryResultsButton} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8901,15 +8901,15 @@ A base class for creating Pydantic models. - **start\_parameter** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8923,24 +8923,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputTextMessageContent` {#InputTextMessageContent} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -8954,15 +8954,15 @@ A base class for creating Pydantic models. - **link\_preview\_options** (_Optional\[alicebot.adapter.telegram.model.LinkPreviewOptions\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -8976,24 +8976,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputLocationMessageContent` {#InputLocationMessageContent} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9011,15 +9011,15 @@ A base class for creating Pydantic models. - **proximity\_alert\_radius** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9033,24 +9033,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputVenueMessageContent` {#InputVenueMessageContent} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9072,15 +9072,15 @@ A base class for creating Pydantic models. - **google\_place\_type** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9094,24 +9094,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputContactMessageContent` {#InputContactMessageContent} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9125,15 +9125,15 @@ A base class for creating Pydantic models. - **vcard** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9147,24 +9147,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `LabeledPrice` {#LabeledPrice} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9174,15 +9174,15 @@ A base class for creating Pydantic models. - **amount** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9196,24 +9196,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InputInvoiceMessageContent` {#InputInvoiceMessageContent} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9259,15 +9259,15 @@ A base class for creating Pydantic models. - **is\_flexible** (_Optional\[bool\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9281,24 +9281,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedAudio` {#InlineQueryResultCachedAudio} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9320,15 +9320,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9342,24 +9342,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedDocument` {#InlineQueryResultCachedDocument} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9385,15 +9385,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9407,24 +9407,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedGif` {#InlineQueryResultCachedGif} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9450,15 +9450,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9472,24 +9472,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedMpeg4Gif` {#InlineQueryResultCachedMpeg4Gif} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9515,15 +9515,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9537,24 +9537,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedPhoto` {#InlineQueryResultCachedPhoto} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9582,15 +9582,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9604,24 +9604,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedSticker` {#InlineQueryResultCachedSticker} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9637,15 +9637,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9659,24 +9659,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedVideo` {#InlineQueryResultCachedVideo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9704,15 +9704,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9726,24 +9726,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultCachedVoice` {#InlineQueryResultCachedVoice} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9767,15 +9767,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9789,24 +9789,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultArticle` {#InlineQueryResultArticle} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9834,15 +9834,15 @@ A base class for creating Pydantic models. - **thumbnail\_height** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9856,24 +9856,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultAudio` {#InlineQueryResultAudio} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9901,15 +9901,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9923,24 +9923,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultContact` {#InlineQueryResultContact} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -9968,15 +9968,15 @@ A base class for creating Pydantic models. - **thumbnail\_height** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -9990,24 +9990,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultGame` {#InlineQueryResultGame} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10021,15 +10021,15 @@ A base class for creating Pydantic models. - **reply\_markup** (_Optional\[alicebot.adapter.telegram.model.InlineKeyboardMarkup\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10043,24 +10043,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultDocument` {#InlineQueryResultDocument} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10094,15 +10094,15 @@ A base class for creating Pydantic models. - **thumbnail\_height** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10116,24 +10116,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultGif` {#InlineQueryResultGif} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10169,15 +10169,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10191,24 +10191,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultLocation` {#InlineQueryResultLocation} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10242,15 +10242,15 @@ A base class for creating Pydantic models. - **thumbnail\_height** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10264,24 +10264,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultMpeg4Gif` {#InlineQueryResultMpeg4Gif} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10317,15 +10317,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10339,24 +10339,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultPhoto` {#InlineQueryResultPhoto} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10390,15 +10390,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10412,24 +10412,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultVenue` {#InlineQueryResultVenue} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10465,15 +10465,15 @@ A base class for creating Pydantic models. - **thumbnail\_height** (_Optional\[int\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10487,24 +10487,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultVideo` {#InlineQueryResultVideo} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10542,15 +10542,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10564,24 +10564,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `InlineQueryResultVoice` {#InlineQueryResultVoice} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10607,15 +10607,15 @@ A base class for creating Pydantic models. - **input\_message\_content** (_Union\[alicebot.adapter.telegram.model.InputTextMessageContent, alicebot.adapter.telegram.model.InputLocationMessageContent, alicebot.adapter.telegram.model.InputVenueMessageContent, alicebot.adapter.telegram.model.InputContactMessageContent, alicebot.adapter.telegram.model.InputInvoiceMessageContent, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10629,24 +10629,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `SentWebAppMessage` {#SentWebAppMessage} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10654,15 +10654,15 @@ A base class for creating Pydantic models. - **inline\_message\_id** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10676,24 +10676,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `ShippingOption` {#ShippingOption} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10705,15 +10705,15 @@ A base class for creating Pydantic models. - **prices** (_list\[alicebot.adapter.telegram.model.LabeledPrice\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10727,24 +10727,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `RevenueWithdrawalStatePending` {#RevenueWithdrawalStatePending} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10752,15 +10752,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10774,24 +10774,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `RevenueWithdrawalStateSucceeded` {#RevenueWithdrawalStateSucceeded} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10803,15 +10803,15 @@ A base class for creating Pydantic models. - **url** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10825,24 +10825,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `RevenueWithdrawalStateFailed` {#RevenueWithdrawalStateFailed} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10850,15 +10850,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10872,24 +10872,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `TransactionPartnerUser` {#TransactionPartnerUser} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10905,15 +10905,15 @@ A base class for creating Pydantic models. - **paid\_media\_payload** (_Optional\[str\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10927,24 +10927,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `TransactionPartnerFragment` {#TransactionPartnerFragment} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -10954,15 +10954,15 @@ A base class for creating Pydantic models. - **withdrawal\_state** (_Union\[alicebot.adapter.telegram.model.RevenueWithdrawalStatePending, alicebot.adapter.telegram.model.RevenueWithdrawalStateSucceeded, alicebot.adapter.telegram.model.RevenueWithdrawalStateFailed, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -10976,24 +10976,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `TransactionPartnerTelegramAds` {#TransactionPartnerTelegramAds} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11001,15 +11001,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11023,24 +11023,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `TransactionPartnerOther` {#TransactionPartnerOther} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11048,15 +11048,15 @@ A base class for creating Pydantic models. - **type** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11070,24 +11070,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `StarTransaction` {#StarTransaction} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11103,15 +11103,15 @@ A base class for creating Pydantic models. - **receiver** (_Union\[alicebot.adapter.telegram.model.TransactionPartnerUser, alicebot.adapter.telegram.model.TransactionPartnerFragment, alicebot.adapter.telegram.model.TransactionPartnerTelegramAds, alicebot.adapter.telegram.model.TransactionPartnerOther, NoneType\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11125,24 +11125,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `StarTransactions` {#StarTransactions} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11150,15 +11150,15 @@ A base class for creating Pydantic models. - **transactions** (_list\[alicebot.adapter.telegram.model.StarTransaction\]_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11172,24 +11172,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorDataField` {#PassportElementErrorDataField} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11205,15 +11205,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11227,24 +11227,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorFrontSide` {#PassportElementErrorFrontSide} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11258,15 +11258,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11280,24 +11280,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorReverseSide` {#PassportElementErrorReverseSide} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11311,15 +11311,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11333,24 +11333,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorSelfie` {#PassportElementErrorSelfie} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11364,15 +11364,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11386,24 +11386,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorFile` {#PassportElementErrorFile} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11417,15 +11417,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11439,24 +11439,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorFiles` {#PassportElementErrorFiles} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11470,15 +11470,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11492,24 +11492,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorTranslationFile` {#PassportElementErrorTranslationFile} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11523,15 +11523,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11545,24 +11545,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorTranslationFiles` {#PassportElementErrorTranslationFiles} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11576,15 +11576,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11598,24 +11598,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `PassportElementErrorUnspecified` {#PassportElementErrorUnspecified} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11629,15 +11629,15 @@ A base class for creating Pydantic models. - **message** (_str_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11651,24 +11651,24 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. ## _class_ `GameHighScore` {#GameHighScore} Bases: `pydantic.main.BaseModel` -Usage docs: https://docs.pydantic.dev/2.8/concepts/models/ +Usage docs: https://docs.pydantic.dev/2.9/concepts/models/ A base class for creating Pydantic models. @@ -11680,15 +11680,15 @@ A base class for creating Pydantic models. - **score** (_int_) - - **\_\_class\_vars\_\_** - The names of classvars defined on the model. + - **\_\_class\_vars\_\_** - The names of the class variables defined on the model. - **\_\_private\_attributes\_\_** - Metadata about the private attributes of the model. - - **\_\_signature\_\_** - The signature for instantiating the model. + - **\_\_signature\_\_** - The synthesized `__init__` [`Signature`][inspect.Signature] of the model. - **\_\_pydantic\_complete\_\_** - Whether model building is completed, or if there are still undefined fields. - - **\_\_pydantic\_core\_schema\_\_** - The pydantic-core schema used to build the SchemaValidator and SchemaSerializer. + - **\_\_pydantic\_core\_schema\_\_** - The core schema of the model. - **\_\_pydantic\_custom\_init\_\_** - Whether the model has a custom `__init__` function. @@ -11702,15 +11702,15 @@ A base class for creating Pydantic models. - **\_\_pydantic\_post\_init\_\_** - The name of the post-init method for the model, if defined. - - **\_\_pydantic\_root\_model\_\_** - Whether the model is a `RootModel`. + - **\_\_pydantic\_root\_model\_\_** - Whether the model is a [`RootModel`][pydantic.root_model.RootModel]. - - **\_\_pydantic\_serializer\_\_** - The pydantic-core SchemaSerializer used to dump instances of the model. + - **\_\_pydantic\_serializer\_\_** - The `pydantic-core` `SchemaSerializer` used to dump instances of the model. - - **\_\_pydantic\_validator\_\_** - The pydantic-core SchemaValidator used to validate instances of the model. + - **\_\_pydantic\_validator\_\_** - The `pydantic-core` `SchemaValidator` used to validate instances of the model. - - **\_\_pydantic\_extra\_\_** - An instance attribute with the values of extra fields from validation when - `model_config['extra'] == 'allow'`. + - **\_\_pydantic\_extra\_\_** - A dictionary containing extra values, if [`extra`][pydantic.config.ConfigDict.extra] + is set to `'allow'`. - - **\_\_pydantic\_fields\_set\_\_** - An instance attribute with the names of fields explicitly set. + - **\_\_pydantic\_fields\_set\_\_** - The names of fields explicitly set during instantiation. - - **\_\_pydantic\_private\_\_** - Instance attribute with the values of private attributes set on the model instance. + - **\_\_pydantic\_private\_\_** - Values of private attributes set on the model instance. diff --git a/docs/api/adapter/telegram/utils.md b/docs/api/adapter/telegram/utils.md deleted file mode 100644 index 6a431a0..0000000 --- a/docs/api/adapter/telegram/utils.md +++ /dev/null @@ -1,59 +0,0 @@ -# alicebot.adapter.telegram.utils - -Telegram 适配器内部使用的实用工具。 - -## _function_ `snake_to_camel_case(snake_str)` {#snake-to-camel-case} - -将 snake_case 转换为 CamelCase。 - -- **Arguments** - - - **snake\_str** (_str_) - snake_case 字符串。 - -- **Returns** - - Type: _str_ - - CamelCase 字符串。 - -## _function_ `snake_to_lower_camel_case(snake_str)` {#snake-to-lower-camel-case} - -将 snake_case 转换为 lowerCamelCase。 - -- **Arguments** - - - **snake\_str** (_str_) - snake_case 字符串。 - -- **Returns** - - Type: _str_ - - lowerCamelCase 字符串。 - -## _function_ `camel_to_snake_case(camel_case)` {#camel-to-snake-case} - -将 CamelCase 转换为 snake_case。 - -- **Arguments** - - - **camel\_case** (_str_) - CamelCase 字符串。 - -- **Returns** - - Type: _str_ - - snake_case 字符串。 - -## _function_ `lower_camel_to_snake_case(lower_camel_case)` {#lower-camel-to-snake-case} - -将 lowerCamelCase 转换为 snake_case。 - -- **Arguments** - - - **lower\_camel\_case** (_str_) - lowerCamelCase 字符串。 - -- **Returns** - - Type: _str_ - - snake_case 字符串。 diff --git a/docs/api/adapter/utils.md b/docs/api/adapter/utils.md index cccb19e..c19af86 100644 --- a/docs/api/adapter/utils.md +++ b/docs/api/adapter/utils.md @@ -10,12 +10,6 @@ Bases: `alicebot.adapter.Adapter` 轮询式适配器示例。 -- **Attributes** - - - **delay** (_float_) - - - **create\_task** (_bool_) - ### _async method_ `on_tick(self)` {#PollingAdapter-on-tick} 当轮询发生。 @@ -26,7 +20,9 @@ Bases: `alicebot.adapter.Adapter` ### _async method_ `run(self)` {#PollingAdapter-run} -运行适配器。 +适配器运行方法,适配器开发者必须实现该方法。 + +适配器运行过程中保持保持运行,当此方法结束后, AliceBot 不会自动重新启动适配器。 - **Returns** @@ -42,17 +38,13 @@ HTTP 客户端适配器示例。 - **session** (_aiohttp.client.ClientSession_) -### _async method_ `on_tick(self)` {#HttpClientAdapter-on-tick} - -当轮询发生。 - -- **Returns** - - Type: _None_ - ### _async method_ `shutdown(self)` {#HttpClientAdapter-shutdown} -关闭并清理连接。 +在适配器结束运行时运行的方法,用于安全地关闭适配器。 + +AliceBot 在接收到系统的结束信号后先发送 cancel 请求给 run 任务。 +在所有适配器都停止运行后,会依次运行并等待所有适配器的 `shutdown()` 方法。 +当强制退出时此方法可能未被执行。 - **Returns** @@ -60,7 +52,9 @@ HTTP 客户端适配器示例。 ### _async method_ `startup(self)` {#HttpClientAdapter-startup} -初始化适配器。 +在适配器开始运行前运行的方法,用于初始化适配器。 + +AliceBot 依次运行并等待所有适配器的 `startup()` 方法,待运行完毕后再创建 `run()` 任务。 - **Returns** @@ -90,7 +84,9 @@ WebSocket 客户端适配器示例。 ### _async method_ `run(self)` {#WebSocketClientAdapter-run} -运行适配器。 +适配器运行方法,适配器开发者必须实现该方法。 + +适配器运行过程中保持保持运行,当此方法结束后, AliceBot 不会自动重新启动适配器。 - **Returns** @@ -132,7 +128,9 @@ HTTP 服务端适配器示例。 ### _async method_ `run(self)` {#HttpServerAdapter-run} -运行适配器。 +适配器运行方法,适配器开发者必须实现该方法。 + +适配器运行过程中保持保持运行,当此方法结束后, AliceBot 不会自动重新启动适配器。 - **Returns** @@ -140,7 +138,11 @@ HTTP 服务端适配器示例。 ### _async method_ `shutdown(self)` {#HttpServerAdapter-shutdown} -关闭并清理连接。 +在适配器结束运行时运行的方法,用于安全地关闭适配器。 + +AliceBot 在接收到系统的结束信号后先发送 cancel 请求给 run 任务。 +在所有适配器都停止运行后,会依次运行并等待所有适配器的 `shutdown()` 方法。 +当强制退出时此方法可能未被执行。 - **Returns** @@ -148,7 +150,9 @@ HTTP 服务端适配器示例。 ### _async method_ `startup(self)` {#HttpServerAdapter-startup} -初始化适配器。 +在适配器开始运行前运行的方法,用于初始化适配器。 + +AliceBot 依次运行并等待所有适配器的 `startup()` 方法,待运行完毕后再创建 `run()` 任务。 - **Returns** @@ -202,7 +206,9 @@ WebSocket 服务端适配器示例。 ### _async method_ `run(self)` {#WebSocketServerAdapter-run} -运行适配器。 +适配器运行方法,适配器开发者必须实现该方法。 + +适配器运行过程中保持保持运行,当此方法结束后, AliceBot 不会自动重新启动适配器。 - **Returns** @@ -210,7 +216,11 @@ WebSocket 服务端适配器示例。 ### _async method_ `shutdown(self)` {#WebSocketServerAdapter-shutdown} -关闭并清理连接。 +在适配器结束运行时运行的方法,用于安全地关闭适配器。 + +AliceBot 在接收到系统的结束信号后先发送 cancel 请求给 run 任务。 +在所有适配器都停止运行后,会依次运行并等待所有适配器的 `shutdown()` 方法。 +当强制退出时此方法可能未被执行。 - **Returns** @@ -218,7 +228,9 @@ WebSocket 服务端适配器示例。 ### _async method_ `startup(self)` {#WebSocketServerAdapter-startup} -初始化适配器。 +在适配器开始运行前运行的方法,用于初始化适配器。 + +AliceBot 依次运行并等待所有适配器的 `startup()` 方法,待运行完毕后再创建 `run()` 任务。 - **Returns** @@ -296,7 +308,9 @@ WebSocket 适配器示例。 ### _async method_ `run(self)` {#WebSocketAdapter-run} -运行适配器。 +适配器运行方法,适配器开发者必须实现该方法。 + +适配器运行过程中保持保持运行,当此方法结束后, AliceBot 不会自动重新启动适配器。 - **Returns** @@ -304,7 +318,11 @@ WebSocket 适配器示例。 ### _async method_ `shutdown(self)` {#WebSocketAdapter-shutdown} -关闭并清理连接。 +在适配器结束运行时运行的方法,用于安全地关闭适配器。 + +AliceBot 在接收到系统的结束信号后先发送 cancel 请求给 run 任务。 +在所有适配器都停止运行后,会依次运行并等待所有适配器的 `shutdown()` 方法。 +当强制退出时此方法可能未被执行。 - **Returns** diff --git a/docs/api/bot.md b/docs/api/bot.md index b5a319d..fe7e5b9 100644 --- a/docs/api/bot.md +++ b/docs/api/bot.md @@ -16,17 +16,15 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **config** (_alicebot.config.MainConfig_) - 机器人配置。 - - **should\_exit** (_asyncio.locks.Event_) - 机器人是否应该进入准备退出状态。 + - **adapters** (_list\[alicebot.adapter.Adapter\[typing.Any, typing.Any\]\]_) - 当前已经加载的适配器的列表。 - - **adapters** (_List\[alicebot.adapter.Adapter\[Any, Any\]\]_) - 当前已经加载的适配器的列表。 + - **plugins\_priority\_dict** (_dict\[int, list\[type\[alicebot.plugin.Plugin\[typing.Any, typing.Any, typing.Any\]\]\]\]_) - 插件优先级字典。 - - **plugins\_priority\_dict** (_Dict\[int, List\[Type\[alicebot.plugin.Plugin\[Any, Any, Any\]\]\]\]_) - 插件优先级字典。 + - **plugin\_state** (_dict\[str, typing.Any\]_) - 插件状态。 - - **plugin\_state** (_Dict\[str, Any\]_) - 插件状态。 + - **global\_state** (_dict\[typing.Any, typing.Any\]_) - 全局状态。 - - **global\_state** (_Dict\[Any, Any\]_) - 全局状态。 - -### _method_ `__init__(self, *, config_file = 'config.toml', config_dict = None, hot_reload = False)` {#Bot---init--} +### _method_ `__init__(self, *, config_file = 'config.toml', config_dict = None, hot_reload = False, handle_signals = True)` {#Bot---init--} 初始化 AliceBot,读取配置文件,创建配置,加载适配器和插件。 @@ -35,12 +33,14 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **config\_file** (_Optional\[str\]_) - 配置文件,如不指定则使用默认的 `config.toml`。 若指定为 `None`,则不加载配置文件。 - - **config\_dict** (_Optional\[Dict\[str, Any\]\]_) - 配置字典,默认为 `None。` + - **config\_dict** (_Optional\[dict\[str, Any\]\]_) - 配置字典,默认为 `None。` 若指定字典,则会忽略 `config_file` 配置,不再读取配置文件。 - **hot\_reload** (_bool_) - 热重载。 启用后将自动检查 `plugin_dir` 中的插件文件更新,并在更新时自动重新加载。 + - **handle\_signals** (_bool_) - 是否处理系统信号,默认为 `True`。 + - **Returns** Type: _None_ @@ -51,11 +51,11 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **func** (_Callable\[\[Adapter\[Any, Any\]\], Awaitable\[NoneType\]\]_) - 被注册的函数。 + - **func** (_Callable\[\[Adapter\[Any, Any\]\], collections.abc.Awaitable\[None\]\]_) - 被注册的函数。 - **Returns** - Type: _Callable\[\[Adapter\[Any, Any\]\], Awaitable\[NoneType\]\]_ + Type: _Callable\[\[Adapter\[Any, Any\]\], collections.abc.Awaitable\[None\]\]_ 被注册的函数。 @@ -65,11 +65,11 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **func** (_Callable\[\[Adapter\[Any, Any\]\], Awaitable\[NoneType\]\]_) - 被注册的函数。 + - **func** (_Callable\[\[Adapter\[Any, Any\]\], collections.abc.Awaitable\[None\]\]_) - 被注册的函数。 - **Returns** - Type: _Callable\[\[Adapter\[Any, Any\]\], Awaitable\[NoneType\]\]_ + Type: _Callable\[\[Adapter\[Any, Any\]\], collections.abc.Awaitable\[None\]\]_ 被注册的函数。 @@ -79,11 +79,11 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **func** (_Callable\[\[Adapter\[Any, Any\]\], Awaitable\[NoneType\]\]_) - 被注册的函数。 + - **func** (_Callable\[\[Adapter\[Any, Any\]\], collections.abc.Awaitable\[None\]\]_) - 被注册的函数。 - **Returns** - Type: _Callable\[\[Adapter\[Any, Any\]\], Awaitable\[NoneType\]\]_ + Type: _Callable\[\[Adapter\[Any, Any\]\], collections.abc.Awaitable\[None\]\]_ 被注册的函数。 @@ -93,11 +93,11 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **func** (_Callable\[\[Bot\], Awaitable\[NoneType\]\]_) - 被注册的函数。 + - **func** (_Callable\[\[Bot\], collections.abc.Awaitable\[None\]\]_) - 被注册的函数。 - **Returns** - Type: _Callable\[\[Bot\], Awaitable\[NoneType\]\]_ + Type: _Callable\[\[Bot\], collections.abc.Awaitable\[None\]\]_ 被注册的函数。 @@ -107,11 +107,11 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **func** (_Callable\[\[Bot\], Awaitable\[NoneType\]\]_) - 被注册的函数。 + - **func** (_Callable\[\[Bot\], collections.abc.Awaitable\[None\]\]_) - 被注册的函数。 - **Returns** - Type: _Callable\[\[Bot\], Awaitable\[NoneType\]\]_ + Type: _Callable\[\[Bot\], collections.abc.Awaitable\[None\]\]_ 被注册的函数。 @@ -121,11 +121,11 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **func** (_Callable\[\[Event\[Any\]\], Awaitable\[NoneType\]\]_) - 被注册的函数。 + - **func** (_Callable\[\[Event\[Any\]\], collections.abc.Awaitable\[None\]\]_) - 被注册的函数。 - **Returns** - Type: _Callable\[\[Event\[Any\]\], Awaitable\[NoneType\]\]_ + Type: _Callable\[\[Event\[Any\]\], collections.abc.Awaitable\[None\]\]_ 被注册的函数。 @@ -135,27 +135,35 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **func** (_Callable\[\[Event\[Any\]\], Awaitable\[NoneType\]\]_) - 被注册的函数。 + - **func** (_Callable\[\[Event\[Any\]\], collections.abc.Awaitable\[None\]\]_) - 被注册的函数。 - **Returns** - Type: _Callable\[\[Event\[Any\]\], Awaitable\[NoneType\]\]_ + Type: _Callable\[\[Event\[Any\]\], collections.abc.Awaitable\[None\]\]_ 被注册的函数。 +### _method_ `exit(self)` {#Bot-exit} + +退出 AliceBot。 + +- **Returns** + + Type: _None_ + ### _async method_ `get(self, func = None, *, event_type = None, adapter_type = None, max_try_times = None, timeout = None)` {#Bot-get} 获取满足指定条件的的事件,协程会等待直到适配器接收到满足条件的事件、超过最大事件数或超时。 - **Arguments** - - **func** (_Optional\[Callable\[\[Any\], Union\[bool, Awaitable\[bool\]\]\]\]_) - 协程或者函数,函数会被自动包装为协程执行。 + - **func** (_Optional\[Callable\[\[Any\], Union\[bool, collections.abc.Awaitable\[bool\]\]\]\]_) - 协程或者函数,函数会被自动包装为协程执行。 要求接受一个事件作为参数,返回布尔值。当协程返回 `True` 时返回当前事件。 当为 `None` 时相当于输入对于任何事件均返回真的协程,即返回适配器接收到的下一个事件。 - - **event\_type** (_Optional\[Type\[alicebot.event.Event\[Any\]\]\]_) - 当指定时,只接受指定类型的事件,先于 func 条件生效。默认为 `None`。 + - **event\_type** (_Optional\[type\[alicebot.event.Event\[Any\]\]\]_) - 当指定时,只接受指定类型的事件,先于 func 条件生效。默认为 `None`。 - - **adapter\_type** (_Optional\[Type\[alicebot.adapter.Adapter\[Any, Any\]\]\]_) - 当指定时,只接受指定适配器产生的事件,先于 func 条件生效。默认为 `None`。 + - **adapter\_type** (_Optional\[type\[alicebot.adapter.Adapter\[Any, Any\]\]\]_) - 当指定时,只接受指定适配器产生的事件,先于 func 条件生效。默认为 `None`。 - **max\_try\_times** (_Optional\[int\]_) - 最大事件数。 @@ -177,7 +185,7 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **adapter** (_Union\[str, Type\[~AdapterT\]\]_) - 适配器名称或适配器类。 + - **adapter** (_Union\[str, type\[~AdapterT\]\]_) - 适配器名称或适配器类。 - **Returns** @@ -199,7 +207,7 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Returns** - Type: _Type\[alicebot.plugin.Plugin\[Any, Any, Any\]\]_ + Type: _type\[alicebot.plugin.Plugin\[typing.Any, typing.Any, typing.Any\]\]_ 获取到的插件类。 @@ -231,7 +239,7 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **\*adapters** (_Union\[Type\[alicebot.adapter.Adapter\[Any, Any\]\], str\]_) - 适配器类或适配器名称,类型可以是 `Type[Adapter]` 或 `str`。 + - **\*adapters** (_Union\[type\[alicebot.adapter.Adapter\[Any, Any\]\], str\]_) - 适配器类或适配器名称,类型可以是 `Type[Adapter]` 或 `str`。 如果为 `Type[Adapter]` 类型时,将作为适配器类进行加载。 如果为 `str` 类型时,将作为适配器模块名称进行加载,格式和 Python `import` 语句相同。 例如:`path.of.adapter`。 @@ -246,7 +254,7 @@ AliceBot 机器人对象,定义了机器人的基本方法。 - **Arguments** - - **\*plugins** (_Union\[Type\[alicebot.plugin.Plugin\[Any, Any, Any\]\], str, pathlib.Path\]_) - 插件类、插件模块名称或者插件模块文件路径。 + - **\*plugins** (_Union\[type\[alicebot.plugin.Plugin\[Any, Any, Any\]\], str, pathlib.Path\]_) - 插件类、插件模块名称或者插件模块文件路径。 类型可以是 `Type[Plugin]`, `str` 或 `pathlib.Path`。 如果为 `Type[Plugin]` 类型时,将作为插件类进行加载。 如果为 `str` 类型时,将作为插件模块名称进行加载,格式和 Python `import` 语句相同。 @@ -273,7 +281,7 @@ AliceBot 机器人对象,定义了机器人的基本方法。 ### _readonly property_ `plugins` {#Bot-plugins} -Type: _List\[Type\[alicebot.plugin.Plugin\[Any, Any, Any\]\]\]_ +Type: _list\[type\[alicebot.plugin.Plugin\[typing.Any, typing.Any, typing.Any\]\]\]_ 当前已经加载的插件的列表。 @@ -300,3 +308,11 @@ Type: _List\[Type\[alicebot.plugin.Plugin\[Any, Any, Any\]\]\]_ - **Returns** Type: _None_ + +### _async method_ `run_async(self)` {#Bot-run-async} + +异步运行 AliceBot。 + +- **Returns** + + Type: _None_ diff --git a/docs/api/config.md b/docs/api/config.md index de5f62a..c7bba4a 100644 --- a/docs/api/config.md +++ b/docs/api/config.md @@ -34,11 +34,11 @@ Bot 配置。 - **Attributes** - - **plugins** (_Set\[str\]_) - 将被加载的插件列表,将被 `Bot` 类的 `load_plugins()` 方法加载。 + - **plugins** (_set\[str\]_) - 将被加载的插件列表,将被 `Bot` 类的 `load_plugins()` 方法加载。 - - **plugin\_dirs** (_Set\[Annotated\[pathlib.Path, PathType\(path\_type='dir'\)\]\]_) - 将被加载的插件目录列表,将被 `Bot` 类的 `load_plugins_from_dirs()` 方法加载。 + - **plugin\_dirs** (_set\[typing.Annotated\[pathlib.Path, PathType\(path\_type='dir'\)\]\]_) - 将被加载的插件目录列表,将被 `Bot` 类的 `load_plugins_from_dirs()` 方法加载。 - - **adapters** (_Set\[str\]_) - 将被加载的适配器列表,将依次被 `Bot` 类的 `load_adapters()` 方法加载。 + - **adapters** (_set\[str\]_) - 将被加载的适配器列表,将依次被 `Bot` 类的 `load_adapters()` 方法加载。 - **log** (_Optional\[alicebot.config.LogConfig\]_) - AliceBot 日志相关设置。 diff --git a/docs/api/dependencies.md b/docs/api/dependencies.md index 1151c97..58c2eeb 100644 --- a/docs/api/dependencies.md +++ b/docs/api/dependencies.md @@ -10,7 +10,7 @@ AliceBot 依赖注入。 - **Arguments** - - **dependency** (_Union\[Type\[Union\[~\_T, AsyncContextManager\[~\_T\], ContextManager\[~\_T\]\]\], Callable\[\[\], AsyncGenerator\[~\_T, NoneType\]\], Callable\[\[\], Generator\[~\_T, NoneType, NoneType\]\], NoneType\]_) - 依赖类。如果不指定则根据字段的类型注释自动判断。 + - **dependency** (_Union\[type\[Union\[~\_T, contextlib.AbstractAsyncContextManager\[~\_T\], contextlib.AbstractContextManager\[~\_T\]\]\], Callable\[\[\], collections.abc.AsyncGenerator\[~\_T, None\]\], Callable\[\[\], collections.abc.Generator\[~\_T, None, None\]\], NoneType\]_) - 依赖类。如果不指定则根据字段的类型注释自动判断。 - **use\_cache** (_bool_) - 是否使用缓存。默认为 `True`。 diff --git a/docs/api/event.md b/docs/api/event.md index 72a9f53..16cf2da 100644 --- a/docs/api/event.md +++ b/docs/api/event.md @@ -18,6 +18,26 @@ Bases: `abc.ABC`, `pydantic.main.BaseModel`, `typing.Generic` - **\_\_handled\_\_** - 表示事件是否被处理过了,用于适配器处理。警告:请勿手动更改此属性的值。 +## _class_ `EventHandleOption` {#EventHandleOption} + +Bases: `tuple` + +事件处理选项。 + +- **Attributes** + + - **event** (_Event\[Any\]_) - 当前事件。 + + - **handle\_get** (_bool_) - 当前事件是否可以被 get 方法捕获。 + +### _data descriptor_ `event` {#EventHandleOption-event} + +Alias for field number 0 + +### _data descriptor_ `handle_get` {#EventHandleOption-handle-get} + +Alias for field number 1 + ## _abstract class_ `MessageEvent` {#MessageEvent} Bases: `alicebot.event.Event`, `typing.Generic` diff --git a/docs/api/message.md b/docs/api/message.md index 34a5b18..10f01ca 100644 --- a/docs/api/message.md +++ b/docs/api/message.md @@ -22,7 +22,7 @@ Bases: `abc.ABC`, `list`, `typing.Generic` - **Arguments** - - **\*messages** (_Union\[List\[~MessageSegmentT\], ~MessageSegmentT, str, Mapping\[str, Any\]\]_) - 可以被转化为消息的数据。 + - **\*messages** (_Union\[list\[~MessageSegmentT\], ~MessageSegmentT, str, collections.abc.Mapping\[str, Any\]\]_) - 可以被转化为消息的数据。 - **Returns** @@ -76,7 +76,7 @@ Bases: `abc.ABC`, `list`, `typing.Generic` - **Returns** - Type: _Type\[~MessageSegmentT\]_ + Type: _type\[~MessageSegmentT\]_ 消息字段类。 @@ -146,7 +146,7 @@ Bases: `abc.ABC`, `pydantic.main.BaseModel`, `collections.abc.Mapping`, `typing. - **type** (_str_) - 消息字段类型。 - - **data** (_Dict\[str, Any\]_) - 消息字段内容。 + - **data** (_dict\[str, typing.Any\]_) - 消息字段内容。 ### _method_ `from_mapping(msg)` {#MessageSegment-from-mapping} @@ -210,7 +210,7 @@ Bases: `abc.ABC`, `pydantic.main.BaseModel`, `collections.abc.Mapping`, `typing. - **Returns** - Type: _ItemsView\[str, Any\]_ + Type: _collections.abc.ItemsView\[str, typing.Any\]_ ### _method_ `keys(self)` {#MessageSegment-keys} @@ -218,7 +218,7 @@ Bases: `abc.ABC`, `pydantic.main.BaseModel`, `collections.abc.Mapping`, `typing. - **Returns** - Type: _KeysView\[str\]_ + Type: _collections.abc.KeysView\[str\]_ ### _method_ `values(self)` {#MessageSegment-values} @@ -226,4 +226,4 @@ Bases: `abc.ABC`, `pydantic.main.BaseModel`, `collections.abc.Mapping`, `typing. - **Returns** - Type: _ValuesView\[Any\]_ + Type: _collections.abc.ValuesView\[typing.Any\]_ diff --git a/docs/api/plugin.md b/docs/api/plugin.md index 9ed7d1e..95be142 100644 --- a/docs/api/plugin.md +++ b/docs/api/plugin.md @@ -22,7 +22,7 @@ Bases: `abc.ABC`, `typing.Generic` - **block** (_ClassVar\[bool\]_) - 插件执行结束后是否阻止事件的传播。`True` 表示阻止。 - - **Config** (_Type\[~ConfigT\]_) + - **Config** (_type\[~ConfigT\]_) - **event** - 当前正在被此插件处理的事件。 diff --git a/docs/api/utils.md b/docs/api/utils.md index bf1c50b..0a54cfe 100644 --- a/docs/api/utils.md +++ b/docs/api/utils.md @@ -10,7 +10,7 @@ Bases: `importlib.abc.MetaPathFinder` - **Attributes** - - **path** (_ClassVar\[List\[str\]\]_) + - **path** (_ClassVar\[list\[str\]\]_) ### _method_ `find_spec(self, fullname, path = None, target = None)` {#ModulePathFinder-find-spec} @@ -20,7 +20,7 @@ Bases: `importlib.abc.MetaPathFinder` - **fullname** (_str_) - - **path** (_Optional\[Sequence\[str\]\]_) + - **path** (_Optional\[collections.abc.Sequence\[str\]\]_) - **target** (_Optional\[module\]_) @@ -38,7 +38,7 @@ Bases: `importlib.abc.MetaPathFinder` - **Returns** - Type: _TypeGuard\[Type\[alicebot.config.ConfigModel\]\]_ + Type: _TypeGuard\[type\[alicebot.config.ConfigModel\]\]_ 返回是否是配置类。 @@ -54,7 +54,7 @@ Bases: `importlib.abc.MetaPathFinder` - **Returns** - Type: _List\[~\_TypeT\]_ + Type: _list\[~\_TypeT\]_ 返回符合条件的类的列表。 @@ -72,7 +72,7 @@ Bases: `importlib.abc.MetaPathFinder` - **Returns** - Type: _List\[Tuple\[~\_TypeT, module\]\]_ + Type: _list\[tuple\[~\_TypeT, module\]\]_ 返回由符合条件的类和模块组成的元组的列表。 @@ -88,7 +88,23 @@ Bases: `json.encoder.JSONEncoder` ### _method_ `default(self, o)` {#PydanticEncoder-default} -返回 `o` 的可序列化对象。 +Implement this method in a subclass such that it returns + +a serializable object for ``o``, or calls the base implementation +(to raise a ``TypeError``). + +For example, to support arbitrary iterators, you could +implement default like this:: + + def default(self, o): + try: + iterable = iter(o) + except TypeError: + pass + else: + return list(iterable) + # Let the base class default method raise the TypeError + return super().default(o) - **Arguments** @@ -126,7 +142,7 @@ Bases: `json.encoder.JSONEncoder` - **Returns** - Type: _Callable\[~\_P, Coroutine\[NoneType, NoneType, ~\_R\]\]_ + Type: _Callable\[~\_P, collections.abc.Coroutine\[None, None, ~\_R\]\]_ 异步函数。 @@ -136,26 +152,30 @@ Bases: `json.encoder.JSONEncoder` - **Arguments** - - **cm** (_ContextManager\[~\_T\]_) - 待包装的同步上下文管理器。 + - **cm** (_contextlib.AbstractContextManager\[~\_T\]_) - 待包装的同步上下文管理器。 - **to\_thread** (_bool_) - 是否在独立的线程中运行同步函数。默认为 `False`。 - **Returns** - Type: _AsyncGenerator\[~\_T, NoneType\]_ + Type: _collections.abc.AsyncGenerator\[~\_T, None\]_ 异步上下文管理器。 -## _function_ `wrap_get_func(func)` {#wrap-get-func} +## _function_ `wrap_get_func(func, *, event_type = None, adapter_type = None)` {#wrap-get-func} 将 `get()` 函数接受的参数包装为一个异步函数。 - **Arguments** - - **func** (_Optional\[Callable\[\[~EventT\], Union\[bool, Awaitable\[bool\]\]\]\]_) - `get()` 函数接受的参数。 + - **func** (_Optional\[Callable\[\[~EventT\], Union\[bool, collections.abc.Awaitable\[bool\]\]\]\]_) - `get()` 函数接受的参数。 + + - **event\_type** (_Optional\[type\['Event\[Any\]'\]\]_) - 事件类型。 + + - **adapter\_type** (_Optional\[type\['Adapter\[Any, Any\]'\]\]_) - 适配器类型。 - **Returns** - Type: _Callable\[\[~EventT\], Awaitable\[bool\]\]_ + Type: _Callable\[\[~EventT\], collections.abc.Awaitable\[bool\]\]_ 异步函数。