Source code for aiogram.types.bot_command

from __future__ import annotations

from typing import TYPE_CHECKING, Any

from .base import MutableTelegramObject

[docs] class BotCommand(MutableTelegramObject): """ This object represents a bot command. Source: """ command: str """Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.""" description: str """Description of the command; 1-256 characters.""" if TYPE_CHECKING: # DO NOT EDIT MANUALLY!!! # This section was auto-generated via `butcher` def __init__( __pydantic__self__, *, command: str, description: str, **__pydantic_kwargs: Any ) -> None: # DO NOT EDIT MANUALLY!!! # This method was auto-generated via `butcher` # Is needed only for type checking and IDE support without any additional plugins super().__init__(command=command, description=description, **__pydantic_kwargs)