alicebot.adapter.telegram.media
Telegram Media 模型。
class TelegramMedia
Bases: pydantic.main.BaseModel
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Photo
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
photo (Union[bytes, tuple[str, bytes], str])
caption (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
show_caption_above_media (Optional[bool])
has_spoiler (Optional[bool])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Audio
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
audio (Union[bytes, tuple[str, bytes], str])
caption (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
duration (Optional[int])
performer (Optional[str])
title (Optional[str])
thumbnail (Union[bytes, tuple[str, bytes], str, NoneType])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Document
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
document (Union[bytes, tuple[str, bytes], str])
thumbnail (Union[bytes, tuple[str, bytes], str, NoneType])
caption (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
disable_content_type_detection (Optional[bool])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Video
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
video (Union[bytes, tuple[str, bytes], str])
duration (Optional[int])
width (Optional[int])
height (Optional[int])
thumbnail (Union[bytes, tuple[str, bytes], str, NoneType])
caption (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
show_caption_above_media (Optional[bool])
has_spoiler (Optional[bool])
supports_streaming (Optional[bool])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Animation
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
animation (Union[bytes, tuple[str, bytes], str])
duration (Optional[int])
width (Optional[int])
height (Optional[int])
thumbnail (Union[bytes, tuple[str, bytes], str, NoneType])
caption (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
show_caption_above_media (Optional[bool])
has_spoiler (Optional[bool])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Voice
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
voice (Union[bytes, tuple[str, bytes], str])
caption (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
duration (Optional[int])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class VideoNote
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
video_note (Union[bytes, tuple[str, bytes], str])
duration (Optional[int])
length (Optional[int])
thumbnail (Union[bytes, tuple[str, bytes], str, NoneType])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class PaidMedia
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
star_count (int)
media (list[typing.Union[alicebot.adapter.telegram.model.InputPaidMediaPhoto, alicebot.adapter.telegram.model.InputPaidMediaVideo]])
payload (Optional[str])
caption (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
show_caption_above_media (Optional[bool])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class MediaGroup
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
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 the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Location
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
latitude (float)
longitude (float)
horizontal_accuracy (Optional[float])
live_period (Optional[int])
heading (Optional[int])
proximity_alert_radius (Optional[int])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Venue
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
latitude (float)
longitude (float)
title (str)
address (str)
foursquare_id (Optional[str])
foursquare_type (Optional[str])
google_place_id (Optional[str])
google_place_type (Optional[str])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Contact
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
phone_number (str)
first_name (str)
last_name (Optional[str])
vcard (Optional[str])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Poll
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
question (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
options (list[alicebot.adapter.telegram.model.InputPollOption])
is_anonymous (Optional[bool])
type (Optional[str])
allows_multiple_answers (Optional[bool])
correct_option_id (Optional[int])
explanation (Union[NoneType, str, alicebot.adapter.telegram.message.TelegramMessage])
open_period (Optional[int])
close_date (Optional[int])
is_closed (Optional[bool])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Dice
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
emoji (Optional[str])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class ChatAction
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
action (str)
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Sticker
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
sticker (Union[bytes, tuple[str, bytes], str])
emoji (Optional[str])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Invoice
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
title (str)
description (str)
payload (str)
provider_token (Optional[str])
currency (str)
prices (list[alicebot.adapter.telegram.model.LabeledPrice])
max_tip_amount (Optional[int])
suggested_tip_amounts (Optional[list[int]])
start_parameter (Optional[str])
provider_data (Optional[str])
photo_url (Optional[str])
photo_size (Optional[int])
photo_width (Optional[int])
photo_height (Optional[int])
need_name (Optional[bool])
need_phone_number (Optional[bool])
need_email (Optional[bool])
need_shipping_address (Optional[bool])
send_phone_number_to_provider (Optional[bool])
send_email_to_provider (Optional[bool])
is_flexible (Optional[bool])
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.
class Game
Bases: alicebot.adapter.telegram.media.TelegramMedia
Usage docs: https://docs.pydantic.dev/2.9/concepts/models/
A base class for creating Pydantic models.
Attributes
game_short_name (str)
__class_vars__ - The names of the class variables defined on the model.
__private_attributes__ - Metadata about the private attributes of 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 core schema of the model.
__pydantic_custom_init__ - Whether the model has a custom
__init__
function.__pydantic_decorators__ - Metadata containing the decorators defined on the model. This replaces
Model.__validators__
andModel.__root_validators__
from Pydantic V1.__pydantic_generic_metadata__ - Metadata for generic models; contains data used for a similar purpose to args, origin, parameters in typing-module generics. May eventually be replaced by these.
__pydantic_parent_namespace__ - Parent namespace of the model, used for automatic rebuilding of 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.RootModel].__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_extra__ - A dictionary containing extra values, if [
extra
][pydantic.config.ConfigDict.extra] is set to'allow'
.__pydantic_fields_set__ - The names of fields explicitly set during instantiation.
__pydantic_private__ - Values of private attributes set on the model instance.