---
openapi: 3.0.0
info:
  title: Telegram Bot API
  description: Auto-generated OpenAPI schema
  version: 8.3.0
servers:
  - url: 'https://api.telegram.org/bot{token}'
    variables:
      token:
        default: '123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11'
        description:
          Each bot is given a unique authentication token when it is created.
paths:
  /getUpdates:
    post:
      description:
        'Use this method to receive incoming updates using long polling
        ([wiki](https://en.wikipedia.org/wiki/Push_technology#Long_polling)).
        Returns an Array of [Update](https://core.telegram.org/bots/api/#update)
        objects.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getupdates'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                offset:
                  description:
                    "Identifier of the first update to be returned. Must be
                    greater by one than the highest among the identifiers of
                    previously received updates. By default, updates starting
                    with the earliest unconfirmed update are returned. An update
                    is considered confirmed as soon as
                    [getUpdates](https://core.telegram.org/bots/api/#getupdates)
                    is called with an *offset* higher than its *update\\_id*.
                    The negative offset can be specified to retrieve updates
                    starting from *-offset* update from the end of the updates
                    queue. All previous updates will be forgotten."
                  type: integer
                limit:
                  description:
                    Limits the number of updates to be retrieved. Values between
                    1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
                timeout:
                  description:
                    'Timeout in seconds for long polling. Defaults to 0, i.e.
                    usual short polling. Should be positive, short polling
                    should be used for testing purposes only.'
                  default: 0
                  type: integer
                allowed_updates:
                  description:
                    "A JSON-serialized list of the update types you want your
                    bot to receive. For example, specify `[\"message\",
                    \"edited_channel_post\", \"callback_query\"]` to only
                    receive updates of these types. See
                    [Update](https://core.telegram.org/bots/api/#update) for a
                    complete list of available update types. Specify an empty
                    list to receive all update types except *chat\\_member*,
                    *message\\_reaction*, and *message\\_reaction\\_count*
                    (default). If not specified, the previous setting will be
                    used.  \n\nPlease note that this parameter doesn't affect
                    updates created before the call to getUpdates, so unwanted
                    updates may be received for a short period of time."
                  type: array
                  items:
                    type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                offset:
                  description:
                    "Identifier of the first update to be returned. Must be
                    greater by one than the highest among the identifiers of
                    previously received updates. By default, updates starting
                    with the earliest unconfirmed update are returned. An update
                    is considered confirmed as soon as
                    [getUpdates](https://core.telegram.org/bots/api/#getupdates)
                    is called with an *offset* higher than its *update\\_id*.
                    The negative offset can be specified to retrieve updates
                    starting from *-offset* update from the end of the updates
                    queue. All previous updates will be forgotten."
                  type: integer
                limit:
                  description:
                    Limits the number of updates to be retrieved. Values between
                    1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
                timeout:
                  description:
                    'Timeout in seconds for long polling. Defaults to 0, i.e.
                    usual short polling. Should be positive, short polling
                    should be used for testing purposes only.'
                  default: 0
                  type: integer
                allowed_updates:
                  description:
                    "A JSON-serialized list of the update types you want your
                    bot to receive. For example, specify `[\"message\",
                    \"edited_channel_post\", \"callback_query\"]` to only
                    receive updates of these types. See
                    [Update](https://core.telegram.org/bots/api/#update) for a
                    complete list of available update types. Specify an empty
                    list to receive all update types except *chat\\_member*,
                    *message\\_reaction*, and *message\\_reaction\\_count*
                    (default). If not specified, the previous setting will be
                    used.  \n\nPlease note that this parameter doesn't affect
                    updates created before the call to getUpdates, so unwanted
                    updates may be received for a short period of time."
                  type: array
                  items:
                    type: string
          application/json:
            schema:
              type: object
              properties:
                offset:
                  description:
                    "Identifier of the first update to be returned. Must be
                    greater by one than the highest among the identifiers of
                    previously received updates. By default, updates starting
                    with the earliest unconfirmed update are returned. An update
                    is considered confirmed as soon as
                    [getUpdates](https://core.telegram.org/bots/api/#getupdates)
                    is called with an *offset* higher than its *update\\_id*.
                    The negative offset can be specified to retrieve updates
                    starting from *-offset* update from the end of the updates
                    queue. All previous updates will be forgotten."
                  type: integer
                limit:
                  description:
                    Limits the number of updates to be retrieved. Values between
                    1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
                timeout:
                  description:
                    'Timeout in seconds for long polling. Defaults to 0, i.e.
                    usual short polling. Should be positive, short polling
                    should be used for testing purposes only.'
                  default: 0
                  type: integer
                allowed_updates:
                  description:
                    "A JSON-serialized list of the update types you want your
                    bot to receive. For example, specify `[\"message\",
                    \"edited_channel_post\", \"callback_query\"]` to only
                    receive updates of these types. See
                    [Update](https://core.telegram.org/bots/api/#update) for a
                    complete list of available update types. Specify an empty
                    list to receive all update types except *chat\\_member*,
                    *message\\_reaction*, and *message\\_reaction\\_count*
                    (default). If not specified, the previous setting will be
                    used.  \n\nPlease note that this parameter doesn't affect
                    updates created before the call to getUpdates, so unwanted
                    updates may be received for a short period of time."
                  type: array
                  items:
                    type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/Update'
                required:
                  - ok
                  - result
  /setWebhook:
    post:
      description:
        "Use this method to specify a URL and receive incoming updates via an
        outgoing webhook. Whenever there is an update for the bot, we will send
        an HTTPS POST request to the specified URL, containing a JSON-serialized
        [Update](https://core.telegram.org/bots/api/#update). In case of an
        unsuccessful request (a request with response [HTTP status
        code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes) different
        from `2XY`), we will repeat the request and give up after a reasonable
        amount of attempts. Returns *True* on success.\n\nIf you'd like to make
        sure that the webhook was set by you, you can specify secret data in the
        parameter *secret\\_token*. If specified, the request will contain a
        header “X-Telegram-Bot-Api-Secret-Token” with the secret token as
        content."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setwebhook'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                url:
                  description:
                    HTTPS URL to send updates to. Use an empty string to remove
                    webhook integration
                  type: string
                certificate:
                  $ref: '#/components/schemas/InputFile'
                ip_address:
                  description:
                    The fixed IP address which will be used to send webhook
                    requests instead of the IP address resolved through DNS
                  type: string
                max_connections:
                  description:
                    "The maximum allowed number of simultaneous HTTPS
                    connections to the webhook for update delivery, 1-100.
                    Defaults to *40*. Use lower values to limit the load on your
                    bot's server, and higher values to increase your bot's
                    throughput."
                  default: 40
                  type: integer
                allowed_updates:
                  description:
                    "A JSON-serialized list of the update types you want your
                    bot to receive. For example, specify `[\"message\",
                    \"edited_channel_post\", \"callback_query\"]` to only
                    receive updates of these types. See
                    [Update](https://core.telegram.org/bots/api/#update) for a
                    complete list of available update types. Specify an empty
                    list to receive all update types except *chat\\_member*,
                    *message\\_reaction*, and *message\\_reaction\\_count*
                    (default). If not specified, the previous setting will be
                    used.  \nPlease note that this parameter doesn't affect
                    updates created before the call to the setWebhook, so
                    unwanted updates may be received for a short period of time."
                  type: array
                  items:
                    type: string
                drop_pending_updates:
                  description: Pass *True* to drop all pending updates
                  type: boolean
                secret_token:
                  description:
                    'A secret token to be sent in a header
                    “X-Telegram-Bot-Api-Secret-Token” in every webhook request,
                    1-256 characters. Only characters `A-Z`, `a-z`, `0-9`, `_`
                    and `-` are allowed. The header is useful to ensure that the
                    request comes from a webhook set by you.'
                  type: string
                  minLength: 1
                  maxLength: 256
              required:
                - url
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteWebhook:
    post:
      description:
        'Use this method to remove webhook integration if you decide to switch
        back to [getUpdates](https://core.telegram.org/bots/api/#getupdates).
        Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletewebhook'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                drop_pending_updates:
                  description: Pass *True* to drop all pending updates
                  type: boolean
          multipart/form-data:
            schema:
              type: object
              properties:
                drop_pending_updates:
                  description: Pass *True* to drop all pending updates
                  type: boolean
          application/json:
            schema:
              type: object
              properties:
                drop_pending_updates:
                  description: Pass *True* to drop all pending updates
                  type: boolean
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getWebhookInfo:
    post:
      description:
        'Use this method to get current webhook status. Requires no parameters.
        On success, returns a
        [WebhookInfo](https://core.telegram.org/bots/api/#webhookinfo) object.
        If the bot is using
        [getUpdates](https://core.telegram.org/bots/api/#getupdates), will
        return an object with the *url* field empty.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getwebhookinfo'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/WebhookInfo'
                required:
                  - ok
                  - result
  /getMe:
    post:
      description:
        "A simple method for testing your bot's authentication token. Requires
        no parameters. Returns basic information about the bot in form of a
        [User](https://core.telegram.org/bots/api/#user) object."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getme'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/User'
                required:
                  - ok
                  - result
  /logOut:
    post:
      description:
        'Use this method to log out from the cloud Bot API server before
        launching the bot locally. You **must** log out the bot before running
        it locally, otherwise there is no guarantee that the bot will receive
        updates. After a successful call, you can immediately log in on a local
        server, but will not be able to log in back to the cloud Bot API server
        for 10 minutes. Returns *True* on success. Requires no parameters.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#logout'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /close:
    post:
      description:
        "Use this method to close the bot instance before moving it from one
        local server to another. You need to delete the webhook before calling
        this method to ensure that the bot isn't launched again after server
        restart. The method will return error 429 in the first 10 minutes after
        the bot is launched. Returns *True* on success. Requires no parameters."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#close'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /sendMessage:
    post:
      description:
        'Use this method to send text messages. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendmessage'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                text:
                  description:
                    'Text of the message to be sent, 1-4096 characters after
                    entities parsing'
                  type: string
                  minLength: 1
                  maxLength: 4096
                parse_mode:
                  description:
                    'Mode for parsing entities in the message text. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    message text, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                link_preview_options:
                  $ref: '#/components/schemas/LinkPreviewOptions'
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - text
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                text:
                  description:
                    'Text of the message to be sent, 1-4096 characters after
                    entities parsing'
                  type: string
                  minLength: 1
                  maxLength: 4096
                parse_mode:
                  description:
                    'Mode for parsing entities in the message text. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    message text, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                link_preview_options:
                  $ref: '#/components/schemas/LinkPreviewOptions'
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - text
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                text:
                  description:
                    'Text of the message to be sent, 1-4096 characters after
                    entities parsing'
                  type: string
                  minLength: 1
                  maxLength: 4096
                parse_mode:
                  description:
                    'Mode for parsing entities in the message text. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    message text, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                link_preview_options:
                  $ref: '#/components/schemas/LinkPreviewOptions'
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - text
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /forwardMessage:
    post:
      description:
        "Use this method to forward messages of any kind. Service messages and
        messages with protected content can't be forwarded. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forwardmessage'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original message
                    was sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                video_start_timestamp:
                  description:
                    New start timestamp for the forwarded video in the message
                  type: integer
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the forwarded message from
                    forwarding and saving
                  type: boolean
                message_id:
                  description:
                    "Message identifier in the chat specified in
                    *from\\_chat\\_id*"
                  type: integer
              required:
                - chat_id
                - from_chat_id
                - message_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original message
                    was sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                video_start_timestamp:
                  description:
                    New start timestamp for the forwarded video in the message
                  type: integer
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the forwarded message from
                    forwarding and saving
                  type: boolean
                message_id:
                  description:
                    "Message identifier in the chat specified in
                    *from\\_chat\\_id*"
                  type: integer
              required:
                - chat_id
                - from_chat_id
                - message_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original message
                    was sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                video_start_timestamp:
                  description:
                    New start timestamp for the forwarded video in the message
                  type: integer
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the forwarded message from
                    forwarding and saving
                  type: boolean
                message_id:
                  description:
                    "Message identifier in the chat specified in
                    *from\\_chat\\_id*"
                  type: integer
              required:
                - chat_id
                - from_chat_id
                - message_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /forwardMessages:
    post:
      description:
        "Use this method to forward multiple messages of any kind. If some of
        the specified messages can't be found or forwarded, they are skipped.
        Service messages and messages with protected content can't be forwarded.
        Album grouping is kept for forwarded messages. On success, an array of
        [MessageId](https://core.telegram.org/bots/api/#messageid) of the sent
        messages is returned."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forwardmessages'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original messages
                    were sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    "A JSON-serialized list of 1-100 identifiers of messages in
                    the chat *from\\_chat\\_id* to forward. The identifiers must
                    be specified in a strictly increasing order."
                  type: array
                  items:
                    type: integer
                disable_notification:
                  description:
                    'Sends the messages
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the forwarded messages from
                    forwarding and saving
                  type: boolean
              required:
                - chat_id
                - from_chat_id
                - message_ids
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original messages
                    were sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    "A JSON-serialized list of 1-100 identifiers of messages in
                    the chat *from\\_chat\\_id* to forward. The identifiers must
                    be specified in a strictly increasing order."
                  type: array
                  items:
                    type: integer
                disable_notification:
                  description:
                    'Sends the messages
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the forwarded messages from
                    forwarding and saving
                  type: boolean
              required:
                - chat_id
                - from_chat_id
                - message_ids
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original messages
                    were sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    "A JSON-serialized list of 1-100 identifiers of messages in
                    the chat *from\\_chat\\_id* to forward. The identifiers must
                    be specified in a strictly increasing order."
                  type: array
                  items:
                    type: integer
                disable_notification:
                  description:
                    'Sends the messages
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the forwarded messages from
                    forwarding and saving
                  type: boolean
              required:
                - chat_id
                - from_chat_id
                - message_ids
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/MessageId'
                required:
                  - ok
                  - result
  /copyMessage:
    post:
      description:
        "Use this method to copy messages of any kind. Service messages, paid
        media messages, giveaway messages, giveaway winners messages, and
        invoice messages can't be copied. A quiz
        [poll](https://core.telegram.org/bots/api/#poll) can be copied only if
        the value of the field *correct\\_option\\_id* is known to the bot. The
        method is analogous to the method
        [forwardMessage](https://core.telegram.org/bots/api/#forwardmessage),
        but the copied message doesn't have a link to the original message.
        Returns the [MessageId](https://core.telegram.org/bots/api/#messageid)
        of the sent message on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#copymessage'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original message
                    was sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Message identifier in the chat specified in
                    *from\\_chat\\_id*"
                  type: integer
                video_start_timestamp:
                  description:
                    New start timestamp for the copied video in the message
                  type: integer
                caption:
                  description:
                    'New caption for media, 0-1024 characters after entities
                    parsing. If not specified, the original caption is kept'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the new caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the new caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    "Pass *True*, if the caption must be shown above the message
                    media. Ignored if a new caption isn't specified."
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - from_chat_id
                - message_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original message
                    was sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Message identifier in the chat specified in
                    *from\\_chat\\_id*"
                  type: integer
                video_start_timestamp:
                  description:
                    New start timestamp for the copied video in the message
                  type: integer
                caption:
                  description:
                    'New caption for media, 0-1024 characters after entities
                    parsing. If not specified, the original caption is kept'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the new caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the new caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    "Pass *True*, if the caption must be shown above the message
                    media. Ignored if a new caption isn't specified."
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - from_chat_id
                - message_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original message
                    was sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Message identifier in the chat specified in
                    *from\\_chat\\_id*"
                  type: integer
                video_start_timestamp:
                  description:
                    New start timestamp for the copied video in the message
                  type: integer
                caption:
                  description:
                    'New caption for media, 0-1024 characters after entities
                    parsing. If not specified, the original caption is kept'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the new caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the new caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    "Pass *True*, if the caption must be shown above the message
                    media. Ignored if a new caption isn't specified."
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - from_chat_id
                - message_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/MessageId'
                required:
                  - ok
                  - result
  /copyMessages:
    post:
      description:
        "Use this method to copy messages of any kind. If some of the specified
        messages can't be found or copied, they are skipped. Service messages,
        paid media messages, giveaway messages, giveaway winners messages, and
        invoice messages can't be copied. A quiz
        [poll](https://core.telegram.org/bots/api/#poll) can be copied only if
        the value of the field *correct\\_option\\_id* is known to the bot. The
        method is analogous to the method
        [forwardMessages](https://core.telegram.org/bots/api/#forwardmessages),
        but the copied messages don't have a link to the original message. Album
        grouping is kept for copied messages. On success, an array of
        [MessageId](https://core.telegram.org/bots/api/#messageid) of the sent
        messages is returned."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#copymessages'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original messages
                    were sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    "A JSON-serialized list of 1-100 identifiers of messages in
                    the chat *from\\_chat\\_id* to copy. The identifiers must be
                    specified in a strictly increasing order."
                  type: array
                  items:
                    type: integer
                disable_notification:
                  description:
                    'Sends the messages
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent messages from forwarding
                    and saving
                  type: boolean
                remove_caption:
                  description:
                    Pass *True* to copy the messages without their captions
                  type: boolean
              required:
                - chat_id
                - from_chat_id
                - message_ids
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original messages
                    were sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    "A JSON-serialized list of 1-100 identifiers of messages in
                    the chat *from\\_chat\\_id* to copy. The identifiers must be
                    specified in a strictly increasing order."
                  type: array
                  items:
                    type: integer
                disable_notification:
                  description:
                    'Sends the messages
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent messages from forwarding
                    and saving
                  type: boolean
                remove_caption:
                  description:
                    Pass *True* to copy the messages without their captions
                  type: boolean
              required:
                - chat_id
                - from_chat_id
                - message_ids
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                from_chat_id:
                  description:
                    'Unique identifier for the chat where the original messages
                    were sent (or channel username in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    "A JSON-serialized list of 1-100 identifiers of messages in
                    the chat *from\\_chat\\_id* to copy. The identifiers must be
                    specified in a strictly increasing order."
                  type: array
                  items:
                    type: integer
                disable_notification:
                  description:
                    'Sends the messages
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent messages from forwarding
                    and saving
                  type: boolean
                remove_caption:
                  description:
                    Pass *True* to copy the messages without their captions
                  type: boolean
              required:
                - chat_id
                - from_chat_id
                - message_ids
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/MessageId'
                required:
                  - ok
                  - result
  /sendPhoto:
    post:
      description:
        'Use this method to send photos. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendphoto'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                photo:
                  description:
                    "Photo to send. Pass a file\\_id as String to send a photo
                    that exists on the Telegram servers (recommended), pass an
                    HTTP URL as a String for Telegram to get a photo from the
                    Internet, or upload a new photo using multipart/form-data.
                    The photo must be at most 10 MB in size. The photo's width
                    and height must not exceed 10000 in total. Width and height
                    ratio must be at most 20. [More information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                caption:
                  description:
                    "Photo caption (may also be used when resending photos by
                    *file\\_id*), 0-1024 characters after entities parsing"
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the photo caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    'Pass *True*, if the caption must be shown above the message
                    media'
                  type: boolean
                has_spoiler:
                  description:
                    Pass *True* if the photo needs to be covered with a spoiler
                    animation
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - photo
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendAudio:
    post:
      description:
        "Use this method to send audio files, if you want Telegram clients to
        display them in the music player. Your audio must be in the .MP3 or .M4A
        format. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned. Bots
        can currently send audio files of up to 50 MB in size, this limit may be
        changed in the future.\n\nFor sending voice messages, use the
        [sendVoice](https://core.telegram.org/bots/api/#sendvoice) method
        instead."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendaudio'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                audio:
                  description:
                    "Audio file to send. Pass a file\\_id as String to send an
                    audio file that exists on the Telegram servers
                    (recommended), pass an HTTP URL as a String for Telegram to
                    get an audio file from the Internet, or upload a new one
                    using multipart/form-data. [More information on Sending
                    Files »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                caption:
                  description:
                    'Audio caption, 0-1024 characters after entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the audio caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                duration:
                  description: Duration of the audio in seconds
                  type: integer
                performer:
                  description: Performer
                  type: string
                title:
                  description: Track name
                  type: string
                thumbnail:
                  description:
                    "Thumbnail of the file sent; can be ignored if thumbnail
                    generation for the file is supported server-side. The
                    thumbnail should be in JPEG format and less than 200 kB in
                    size. A thumbnail's width and height should not exceed 320.
                    Ignored if the file is not uploaded using
                    multipart/form-data. Thumbnails can't be reused and can be
                    only uploaded as a new file, so you can pass
                    “attach://\\<file\\_attach\\_name\\>” if the thumbnail was
                    uploaded using multipart/form-data under
                    \\<file\\_attach\\_name\\>. [More information on Sending
                    Files »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - audio
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendDocument:
    post:
      description:
        'Use this method to send general files. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned. Bots
        can currently send files of any type of up to 50 MB in size, this limit
        may be changed in the future.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#senddocument'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                document:
                  description:
                    "File to send. Pass a file\\_id as String to send a file
                    that exists on the Telegram servers (recommended), pass an
                    HTTP URL as a String for Telegram to get a file from the
                    Internet, or upload a new one using multipart/form-data.
                    [More information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                thumbnail:
                  description:
                    "Thumbnail of the file sent; can be ignored if thumbnail
                    generation for the file is supported server-side. The
                    thumbnail should be in JPEG format and less than 200 kB in
                    size. A thumbnail's width and height should not exceed 320.
                    Ignored if the file is not uploaded using
                    multipart/form-data. Thumbnails can't be reused and can be
                    only uploaded as a new file, so you can pass
                    “attach://\\<file\\_attach\\_name\\>” if the thumbnail was
                    uploaded using multipart/form-data under
                    \\<file\\_attach\\_name\\>. [More information on Sending
                    Files »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                caption:
                  description:
                    "Document caption (may also be used when resending documents
                    by *file\\_id*), 0-1024 characters after entities parsing"
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the document caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                disable_content_type_detection:
                  description:
                    Disables automatic server-side content type detection for
                    files uploaded using multipart/form-data
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - document
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendVideo:
    post:
      description:
        'Use this method to send video files, Telegram clients support MPEG4
        videos (other formats may be sent as
        [Document](https://core.telegram.org/bots/api/#document)). On success,
        the sent [Message](https://core.telegram.org/bots/api/#message) is
        returned. Bots can currently send video files of up to 50 MB in size,
        this limit may be changed in the future.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendvideo'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                video:
                  description:
                    "Video to send. Pass a file\\_id as String to send a video
                    that exists on the Telegram servers (recommended), pass an
                    HTTP URL as a String for Telegram to get a video from the
                    Internet, or upload a new video using multipart/form-data.
                    [More information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                duration:
                  description: Duration of sent video in seconds
                  type: integer
                width:
                  description: Video width
                  type: integer
                height:
                  description: Video height
                  type: integer
                thumbnail:
                  description:
                    "Thumbnail of the file sent; can be ignored if thumbnail
                    generation for the file is supported server-side. The
                    thumbnail should be in JPEG format and less than 200 kB in
                    size. A thumbnail's width and height should not exceed 320.
                    Ignored if the file is not uploaded using
                    multipart/form-data. Thumbnails can't be reused and can be
                    only uploaded as a new file, so you can pass
                    “attach://\\<file\\_attach\\_name\\>” if the thumbnail was
                    uploaded using multipart/form-data under
                    \\<file\\_attach\\_name\\>. [More information on Sending
                    Files »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                cover:
                  description:
                    "Cover for the video in the message. Pass a file\\_id to
                    send a file that exists on the Telegram servers
                    (recommended), pass an HTTP URL for Telegram to get a file
                    from the Internet, or pass
                    “attach://\\<file\\_attach\\_name\\>” to upload a new one
                    using multipart/form-data under \\<file\\_attach\\_name\\>
                    name. [More information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                start_timestamp:
                  description: Start timestamp for the video in the message
                  type: integer
                caption:
                  description:
                    "Video caption (may also be used when resending videos by
                    *file\\_id*), 0-1024 characters after entities parsing"
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the video caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    'Pass *True*, if the caption must be shown above the message
                    media'
                  type: boolean
                has_spoiler:
                  description:
                    Pass *True* if the video needs to be covered with a spoiler
                    animation
                  type: boolean
                supports_streaming:
                  description:
                    Pass *True* if the uploaded video is suitable for streaming
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - video
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendAnimation:
    post:
      description:
        'Use this method to send animation files (GIF or H.264/MPEG-4 AVC video
        without sound). On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned. Bots
        can currently send animation files of up to 50 MB in size, this limit
        may be changed in the future.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendanimation'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                animation:
                  description:
                    "Animation to send. Pass a file\\_id as String to send an
                    animation that exists on the Telegram servers (recommended),
                    pass an HTTP URL as a String for Telegram to get an
                    animation from the Internet, or upload a new animation using
                    multipart/form-data. [More information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                duration:
                  description: Duration of sent animation in seconds
                  type: integer
                width:
                  description: Animation width
                  type: integer
                height:
                  description: Animation height
                  type: integer
                thumbnail:
                  description:
                    "Thumbnail of the file sent; can be ignored if thumbnail
                    generation for the file is supported server-side. The
                    thumbnail should be in JPEG format and less than 200 kB in
                    size. A thumbnail's width and height should not exceed 320.
                    Ignored if the file is not uploaded using
                    multipart/form-data. Thumbnails can't be reused and can be
                    only uploaded as a new file, so you can pass
                    “attach://\\<file\\_attach\\_name\\>” if the thumbnail was
                    uploaded using multipart/form-data under
                    \\<file\\_attach\\_name\\>. [More information on Sending
                    Files »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                caption:
                  description:
                    "Animation caption (may also be used when resending
                    animation by *file\\_id*), 0-1024 characters after entities
                    parsing"
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the animation caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    'Pass *True*, if the caption must be shown above the message
                    media'
                  type: boolean
                has_spoiler:
                  description:
                    Pass *True* if the animation needs to be covered with a
                    spoiler animation
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - animation
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendVoice:
    post:
      description:
        'Use this method to send audio files, if you want Telegram clients to
        display the file as a playable voice message. For this to work, your
        audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or
        in .M4A format (other formats may be sent as
        [Audio](https://core.telegram.org/bots/api/#audio) or
        [Document](https://core.telegram.org/bots/api/#document)). On success,
        the sent [Message](https://core.telegram.org/bots/api/#message) is
        returned. Bots can currently send voice messages of up to 50 MB in size,
        this limit may be changed in the future.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendvoice'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                voice:
                  description:
                    "Audio file to send. Pass a file\\_id as String to send a
                    file that exists on the Telegram servers (recommended), pass
                    an HTTP URL as a String for Telegram to get a file from the
                    Internet, or upload a new one using multipart/form-data.
                    [More information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                caption:
                  description:
                    'Voice message caption, 0-1024 characters after entities
                    parsing'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the voice message caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                duration:
                  description: Duration of the voice message in seconds
                  type: integer
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - voice
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendVideoNote:
    post:
      description:
        'As of [v.4.0](https://telegram.org/blog/video-messages-and-telescope),
        Telegram clients support rounded square MPEG4 videos of up to 1 minute
        long. Use this method to send video messages. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendvideonote'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                video_note:
                  description:
                    "Video note to send. Pass a file\\_id as String to send a
                    video note that exists on the Telegram servers (recommended)
                    or upload a new video using multipart/form-data. [More
                    information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files).
                    Sending video notes by a URL is currently unsupported"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                duration:
                  description: Duration of sent video in seconds
                  type: integer
                length:
                  description:
                    'Video width and height, i.e. diameter of the video message'
                  type: integer
                thumbnail:
                  description:
                    "Thumbnail of the file sent; can be ignored if thumbnail
                    generation for the file is supported server-side. The
                    thumbnail should be in JPEG format and less than 200 kB in
                    size. A thumbnail's width and height should not exceed 320.
                    Ignored if the file is not uploaded using
                    multipart/form-data. Thumbnails can't be reused and can be
                    only uploaded as a new file, so you can pass
                    “attach://\\<file\\_attach\\_name\\>” if the thumbnail was
                    uploaded using multipart/form-data under
                    \\<file\\_attach\\_name\\>. [More information on Sending
                    Files »](https://core.telegram.org/bots/api/#sending-files)"
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - video_note
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendPaidMedia:
    post:
      description:
        'Use this method to send paid media. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendpaidmedia'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    "Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`). If the
                    chat is a channel, all Telegram Star proceeds from this
                    media will be credited to the chat's balance. Otherwise,
                    they will be credited to the bot's balance."
                  anyOf:
                    - type: integer
                    - type: string
                star_count:
                  description:
                    The number of Telegram Stars that must be paid to buy access
                    to the media; 1-2500
                  type: integer
                media:
                  description:
                    A JSON-serialized array describing the media to be sent; up
                    to 10 items
                  type: array
                  items:
                    $ref: '#/components/schemas/InputPaidMedia'
                payload:
                  description:
                    'Bot-defined paid media payload, 0-128 bytes. This will not
                    be displayed to the user, use it for your internal
                    processes.'
                  type: string
                caption:
                  description:
                    'Media caption, 0-1024 characters after entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the media caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    'Pass *True*, if the caption must be shown above the message
                    media'
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - star_count
                - media
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendMediaGroup:
    post:
      description:
        'Use this method to send a group of photos, videos, documents or audios
        as an album. Documents and audio files can be only grouped in an album
        with messages of the same type. On success, an array of
        [Messages](https://core.telegram.org/bots/api/#message) that were sent
        is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendmediagroup'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                media:
                  description:
                    'A JSON-serialized array describing messages to be sent,
                    must include 2-10 items'
                  type: array
                  items:
                    anyOf:
                      - $ref: '#/components/schemas/InputMediaAudio'
                      - $ref: '#/components/schemas/InputMediaDocument'
                      - $ref: '#/components/schemas/InputMediaPhoto'
                      - $ref: '#/components/schemas/InputMediaVideo'
                disable_notification:
                  description:
                    'Sends messages
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent messages from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
              required:
                - chat_id
                - media
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendLocation:
    post:
      description:
        'Use this method to send point on the map. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendlocation'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                latitude:
                  description: Latitude of the location
                  type: number
                longitude:
                  description: Longitude of the location
                  type: number
                horizontal_accuracy:
                  description:
                    'The radius of uncertainty for the location, measured in
                    meters; 0-1500'
                  type: number
                live_period:
                  description:
                    'Period in seconds during which the location will be updated
                    (see [Live
                    Locations](https://telegram.org/blog/live-locations), should
                    be between 60 and 86400, or 0x7FFFFFFF for live locations
                    that can be edited indefinitely.'
                  type: integer
                heading:
                  description:
                    'For live locations, a direction in which the user is
                    moving, in degrees. Must be between 1 and 360 if specified.'
                  type: integer
                proximity_alert_radius:
                  description:
                    'For live locations, a maximum distance for proximity alerts
                    about approaching another chat member, in meters. Must be
                    between 1 and 100000 if specified.'
                  type: integer
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - latitude
                - longitude
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                latitude:
                  description: Latitude of the location
                  type: number
                longitude:
                  description: Longitude of the location
                  type: number
                horizontal_accuracy:
                  description:
                    'The radius of uncertainty for the location, measured in
                    meters; 0-1500'
                  type: number
                live_period:
                  description:
                    'Period in seconds during which the location will be updated
                    (see [Live
                    Locations](https://telegram.org/blog/live-locations), should
                    be between 60 and 86400, or 0x7FFFFFFF for live locations
                    that can be edited indefinitely.'
                  type: integer
                heading:
                  description:
                    'For live locations, a direction in which the user is
                    moving, in degrees. Must be between 1 and 360 if specified.'
                  type: integer
                proximity_alert_radius:
                  description:
                    'For live locations, a maximum distance for proximity alerts
                    about approaching another chat member, in meters. Must be
                    between 1 and 100000 if specified.'
                  type: integer
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - latitude
                - longitude
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                latitude:
                  description: Latitude of the location
                  type: number
                longitude:
                  description: Longitude of the location
                  type: number
                horizontal_accuracy:
                  description:
                    'The radius of uncertainty for the location, measured in
                    meters; 0-1500'
                  type: number
                live_period:
                  description:
                    'Period in seconds during which the location will be updated
                    (see [Live
                    Locations](https://telegram.org/blog/live-locations), should
                    be between 60 and 86400, or 0x7FFFFFFF for live locations
                    that can be edited indefinitely.'
                  type: integer
                heading:
                  description:
                    'For live locations, a direction in which the user is
                    moving, in degrees. Must be between 1 and 360 if specified.'
                  type: integer
                proximity_alert_radius:
                  description:
                    'For live locations, a maximum distance for proximity alerts
                    about approaching another chat member, in meters. Must be
                    between 1 and 100000 if specified.'
                  type: integer
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - latitude
                - longitude
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendVenue:
    post:
      description:
        'Use this method to send information about a venue. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendvenue'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                latitude:
                  description: Latitude of the venue
                  type: number
                longitude:
                  description: Longitude of the venue
                  type: number
                title:
                  description: Name of the venue
                  type: string
                address:
                  description: Address of the venue
                  type: string
                foursquare_id:
                  description: Foursquare identifier of the venue
                  type: string
                foursquare_type:
                  description:
                    "Foursquare type of the venue, if known. (For example,
                    “arts\\_entertainment/default”,
                    “arts\\_entertainment/aquarium” or “food/icecream”.)"
                  type: string
                google_place_id:
                  description: Google Places identifier of the venue
                  type: string
                google_place_type:
                  description:
                    'Google Places type of the venue. (See [supported
                    types](https://developers.google.com/places/web-service/supported_types).)'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - latitude
                - longitude
                - title
                - address
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                latitude:
                  description: Latitude of the venue
                  type: number
                longitude:
                  description: Longitude of the venue
                  type: number
                title:
                  description: Name of the venue
                  type: string
                address:
                  description: Address of the venue
                  type: string
                foursquare_id:
                  description: Foursquare identifier of the venue
                  type: string
                foursquare_type:
                  description:
                    "Foursquare type of the venue, if known. (For example,
                    “arts\\_entertainment/default”,
                    “arts\\_entertainment/aquarium” or “food/icecream”.)"
                  type: string
                google_place_id:
                  description: Google Places identifier of the venue
                  type: string
                google_place_type:
                  description:
                    'Google Places type of the venue. (See [supported
                    types](https://developers.google.com/places/web-service/supported_types).)'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - latitude
                - longitude
                - title
                - address
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                latitude:
                  description: Latitude of the venue
                  type: number
                longitude:
                  description: Longitude of the venue
                  type: number
                title:
                  description: Name of the venue
                  type: string
                address:
                  description: Address of the venue
                  type: string
                foursquare_id:
                  description: Foursquare identifier of the venue
                  type: string
                foursquare_type:
                  description:
                    "Foursquare type of the venue, if known. (For example,
                    “arts\\_entertainment/default”,
                    “arts\\_entertainment/aquarium” or “food/icecream”.)"
                  type: string
                google_place_id:
                  description: Google Places identifier of the venue
                  type: string
                google_place_type:
                  description:
                    'Google Places type of the venue. (See [supported
                    types](https://developers.google.com/places/web-service/supported_types).)'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - latitude
                - longitude
                - title
                - address
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendContact:
    post:
      description:
        'Use this method to send phone contacts. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendcontact'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                phone_number:
                  description: "Contact's phone number"
                  type: string
                first_name:
                  description: "Contact's first name"
                  type: string
                last_name:
                  description: "Contact's last name"
                  type: string
                vcard:
                  description:
                    'Additional data about the contact in the form of a
                    [vCard](https://en.wikipedia.org/wiki/VCard), 0-2048 bytes'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - phone_number
                - first_name
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                phone_number:
                  description: "Contact's phone number"
                  type: string
                first_name:
                  description: "Contact's first name"
                  type: string
                last_name:
                  description: "Contact's last name"
                  type: string
                vcard:
                  description:
                    'Additional data about the contact in the form of a
                    [vCard](https://en.wikipedia.org/wiki/VCard), 0-2048 bytes'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - phone_number
                - first_name
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                phone_number:
                  description: "Contact's phone number"
                  type: string
                first_name:
                  description: "Contact's first name"
                  type: string
                last_name:
                  description: "Contact's last name"
                  type: string
                vcard:
                  description:
                    'Additional data about the contact in the form of a
                    [vCard](https://en.wikipedia.org/wiki/VCard), 0-2048 bytes'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - phone_number
                - first_name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendPoll:
    post:
      description:
        'Use this method to send a native poll. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendpoll'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                question:
                  description: 'Poll question, 1-300 characters'
                  type: string
                  minLength: 1
                  maxLength: 300
                question_parse_mode:
                  description:
                    'Mode for parsing entities in the question. See [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details. Currently, only custom emoji entities are
                    allowed'
                  type: string
                question_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the poll question. It can be specified instead of
                    *question\\_parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                options:
                  description: A JSON-serialized list of 2-10 answer options
                  type: array
                  items:
                    $ref: '#/components/schemas/InputPollOption'
                is_anonymous:
                  description:
                    '*True*, if the poll needs to be anonymous, defaults to
                    *True*'
                  type: boolean
                type:
                  description:
                    'Poll type, “quiz” or “regular”, defaults to “regular”'
                  type: string
                  enum:
                    - quiz
                    - regular
                allows_multiple_answers:
                  description:
                    '*True*, if the poll allows multiple answers, ignored for
                    polls in quiz mode, defaults to *False*'
                  type: boolean
                correct_option_id:
                  description:
                    '0-based identifier of the correct answer option, required
                    for polls in quiz mode'
                  type: integer
                explanation:
                  description:
                    'Text that is shown when a user chooses an incorrect answer
                    or taps on the lamp icon in a quiz-style poll, 0-200
                    characters with at most 2 line feeds after entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 200
                explanation_parse_mode:
                  description:
                    'Mode for parsing entities in the explanation. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                explanation_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the poll explanation. It can be specified instead of
                    *explanation\\_parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                open_period:
                  description:
                    "Amount of time in seconds the poll will be active after
                    creation, 5-600. Can't be used together with *close\\_date*."
                  type: integer
                close_date:
                  description:
                    "Point in time (Unix timestamp) when the poll will be
                    automatically closed. Must be at least 5 and no more than
                    600 seconds in the future. Can't be used together with
                    *open\\_period*."
                  type: integer
                is_closed:
                  description:
                    Pass *True* if the poll needs to be immediately closed. This
                    can be useful for poll preview.
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - question
                - options
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                question:
                  description: 'Poll question, 1-300 characters'
                  type: string
                  minLength: 1
                  maxLength: 300
                question_parse_mode:
                  description:
                    'Mode for parsing entities in the question. See [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details. Currently, only custom emoji entities are
                    allowed'
                  type: string
                question_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the poll question. It can be specified instead of
                    *question\\_parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                options:
                  description: A JSON-serialized list of 2-10 answer options
                  type: array
                  items:
                    $ref: '#/components/schemas/InputPollOption'
                is_anonymous:
                  description:
                    '*True*, if the poll needs to be anonymous, defaults to
                    *True*'
                  type: boolean
                type:
                  description:
                    'Poll type, “quiz” or “regular”, defaults to “regular”'
                  type: string
                  enum:
                    - quiz
                    - regular
                allows_multiple_answers:
                  description:
                    '*True*, if the poll allows multiple answers, ignored for
                    polls in quiz mode, defaults to *False*'
                  type: boolean
                correct_option_id:
                  description:
                    '0-based identifier of the correct answer option, required
                    for polls in quiz mode'
                  type: integer
                explanation:
                  description:
                    'Text that is shown when a user chooses an incorrect answer
                    or taps on the lamp icon in a quiz-style poll, 0-200
                    characters with at most 2 line feeds after entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 200
                explanation_parse_mode:
                  description:
                    'Mode for parsing entities in the explanation. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                explanation_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the poll explanation. It can be specified instead of
                    *explanation\\_parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                open_period:
                  description:
                    "Amount of time in seconds the poll will be active after
                    creation, 5-600. Can't be used together with *close\\_date*."
                  type: integer
                close_date:
                  description:
                    "Point in time (Unix timestamp) when the poll will be
                    automatically closed. Must be at least 5 and no more than
                    600 seconds in the future. Can't be used together with
                    *open\\_period*."
                  type: integer
                is_closed:
                  description:
                    Pass *True* if the poll needs to be immediately closed. This
                    can be useful for poll preview.
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - question
                - options
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                question:
                  description: 'Poll question, 1-300 characters'
                  type: string
                  minLength: 1
                  maxLength: 300
                question_parse_mode:
                  description:
                    'Mode for parsing entities in the question. See [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details. Currently, only custom emoji entities are
                    allowed'
                  type: string
                question_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the poll question. It can be specified instead of
                    *question\\_parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                options:
                  description: A JSON-serialized list of 2-10 answer options
                  type: array
                  items:
                    $ref: '#/components/schemas/InputPollOption'
                is_anonymous:
                  description:
                    '*True*, if the poll needs to be anonymous, defaults to
                    *True*'
                  type: boolean
                type:
                  description:
                    'Poll type, “quiz” or “regular”, defaults to “regular”'
                  type: string
                  enum:
                    - quiz
                    - regular
                allows_multiple_answers:
                  description:
                    '*True*, if the poll allows multiple answers, ignored for
                    polls in quiz mode, defaults to *False*'
                  type: boolean
                correct_option_id:
                  description:
                    '0-based identifier of the correct answer option, required
                    for polls in quiz mode'
                  type: integer
                explanation:
                  description:
                    'Text that is shown when a user chooses an incorrect answer
                    or taps on the lamp icon in a quiz-style poll, 0-200
                    characters with at most 2 line feeds after entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 200
                explanation_parse_mode:
                  description:
                    'Mode for parsing entities in the explanation. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                explanation_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the poll explanation. It can be specified instead of
                    *explanation\\_parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                open_period:
                  description:
                    "Amount of time in seconds the poll will be active after
                    creation, 5-600. Can't be used together with *close\\_date*."
                  type: integer
                close_date:
                  description:
                    "Point in time (Unix timestamp) when the poll will be
                    automatically closed. Must be at least 5 and no more than
                    600 seconds in the future. Can't be used together with
                    *open\\_period*."
                  type: integer
                is_closed:
                  description:
                    Pass *True* if the poll needs to be immediately closed. This
                    can be useful for poll preview.
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - question
                - options
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendDice:
    post:
      description:
        'Use this method to send an animated emoji that will display a random
        value. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#senddice'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                emoji:
                  description:
                    'Emoji on which the dice throw animation is based.
                    Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or
                    “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”,
                    values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”.
                    Defaults to “🎲”'
                  default: 🎲
                  type: string
                  enum:
                    - 🎲
                    - 🎯
                    - 🏀
                    - ⚽
                    - 🎳
                    - 🎰
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                emoji:
                  description:
                    'Emoji on which the dice throw animation is based.
                    Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or
                    “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”,
                    values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”.
                    Defaults to “🎲”'
                  default: 🎲
                  type: string
                  enum:
                    - 🎲
                    - 🎯
                    - 🏀
                    - ⚽
                    - 🎳
                    - 🎰
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                emoji:
                  description:
                    'Emoji on which the dice throw animation is based.
                    Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or
                    “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”,
                    values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”.
                    Defaults to “🎲”'
                  default: 🎲
                  type: string
                  enum:
                    - 🎲
                    - 🎯
                    - 🏀
                    - ⚽
                    - 🎳
                    - 🎰
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /sendChatAction:
    post:
      description:
        "Use this method when you need to tell the user that something is
        happening on the bot's side. The status is set for 5 seconds or less
        (when a message arrives from your bot, Telegram clients clear its typing
        status). Returns *True* on success.\n\nExample: The
        [ImageBot](https://t.me/imagebot) needs some time to process a request
        and upload the image. Instead of sending a text message along the lines
        of “Retrieving image, please wait…”, the bot may use
        [sendChatAction](https://core.telegram.org/bots/api/#sendchataction)
        with *action* = *upload\\_photo*. The user will see a “sending photo”
        status for the bot.\n\nWe only recommend using this method when a
        response from the bot will take a **noticeable** amount of time to
        arrive."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendchataction'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the action will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread; for
                    supergroups only
                  type: integer
                action:
                  description:
                    "Type of action to broadcast. Choose one, depending on what
                    the user is about to receive: *typing* for [text
                    messages](https://core.telegram.org/bots/api/#sendmessage),
                    *upload\\_photo* for
                    [photos](https://core.telegram.org/bots/api/#sendphoto),
                    *record\\_video* or *upload\\_video* for
                    [videos](https://core.telegram.org/bots/api/#sendvideo),
                    *record\\_voice* or *upload\\_voice* for [voice
                    notes](https://core.telegram.org/bots/api/#sendvoice),
                    *upload\\_document* for [general
                    files](https://core.telegram.org/bots/api/#senddocument),
                    *choose\\_sticker* for
                    [stickers](https://core.telegram.org/bots/api/#sendsticker),
                    *find\\_location* for [location
                    data](https://core.telegram.org/bots/api/#sendlocation),
                    *record\\_video\\_note* or *upload\\_video\\_note* for
                    [video
                    notes](https://core.telegram.org/bots/api/#sendvideonote)."
                  type: string
                  enum:
                    - typing
                    - upload_photo
                    - record_video
                    - upload_video
                    - record_voice
                    - upload_voice
                    - upload_document
                    - choose_sticker
                    - find_location
                    - record_video_note
                    - upload_video_note
              required:
                - chat_id
                - action
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the action will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread; for
                    supergroups only
                  type: integer
                action:
                  description:
                    "Type of action to broadcast. Choose one, depending on what
                    the user is about to receive: *typing* for [text
                    messages](https://core.telegram.org/bots/api/#sendmessage),
                    *upload\\_photo* for
                    [photos](https://core.telegram.org/bots/api/#sendphoto),
                    *record\\_video* or *upload\\_video* for
                    [videos](https://core.telegram.org/bots/api/#sendvideo),
                    *record\\_voice* or *upload\\_voice* for [voice
                    notes](https://core.telegram.org/bots/api/#sendvoice),
                    *upload\\_document* for [general
                    files](https://core.telegram.org/bots/api/#senddocument),
                    *choose\\_sticker* for
                    [stickers](https://core.telegram.org/bots/api/#sendsticker),
                    *find\\_location* for [location
                    data](https://core.telegram.org/bots/api/#sendlocation),
                    *record\\_video\\_note* or *upload\\_video\\_note* for
                    [video
                    notes](https://core.telegram.org/bots/api/#sendvideonote)."
                  type: string
                  enum:
                    - typing
                    - upload_photo
                    - record_video
                    - upload_video
                    - record_voice
                    - upload_voice
                    - upload_document
                    - choose_sticker
                    - find_location
                    - record_video_note
                    - upload_video_note
              required:
                - chat_id
                - action
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the action will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread; for
                    supergroups only
                  type: integer
                action:
                  description:
                    "Type of action to broadcast. Choose one, depending on what
                    the user is about to receive: *typing* for [text
                    messages](https://core.telegram.org/bots/api/#sendmessage),
                    *upload\\_photo* for
                    [photos](https://core.telegram.org/bots/api/#sendphoto),
                    *record\\_video* or *upload\\_video* for
                    [videos](https://core.telegram.org/bots/api/#sendvideo),
                    *record\\_voice* or *upload\\_voice* for [voice
                    notes](https://core.telegram.org/bots/api/#sendvoice),
                    *upload\\_document* for [general
                    files](https://core.telegram.org/bots/api/#senddocument),
                    *choose\\_sticker* for
                    [stickers](https://core.telegram.org/bots/api/#sendsticker),
                    *find\\_location* for [location
                    data](https://core.telegram.org/bots/api/#sendlocation),
                    *record\\_video\\_note* or *upload\\_video\\_note* for
                    [video
                    notes](https://core.telegram.org/bots/api/#sendvideonote)."
                  type: string
                  enum:
                    - typing
                    - upload_photo
                    - record_video
                    - upload_video
                    - record_voice
                    - upload_voice
                    - upload_document
                    - choose_sticker
                    - find_location
                    - record_video_note
                    - upload_video_note
              required:
                - chat_id
                - action
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setMessageReaction:
    post:
      description:
        "Use this method to change the chosen reactions on a message. Service
        messages of some types can't be reacted to. Automatically forwarded
        messages from a channel to its discussion group have the same available
        reactions as messages in the channel. Bots can't use paid reactions.
        Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setmessagereaction'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    'Identifier of the target message. If the message belongs to
                    a media group, the reaction is set to the first non-deleted
                    message in the group instead.'
                  type: integer
                reaction:
                  description:
                    "A JSON-serialized list of reaction types to set on the
                    message. Currently, as non-premium users, bots can set up to
                    one reaction per message. A custom emoji reaction can be
                    used if it is either already present on the message or
                    explicitly allowed by chat administrators. Paid reactions
                    can't be used by bots."
                  type: array
                  items:
                    $ref: '#/components/schemas/ReactionType'
                is_big:
                  description:
                    Pass *True* to set the reaction with a big animation
                  type: boolean
              required:
                - chat_id
                - message_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    'Identifier of the target message. If the message belongs to
                    a media group, the reaction is set to the first non-deleted
                    message in the group instead.'
                  type: integer
                reaction:
                  description:
                    "A JSON-serialized list of reaction types to set on the
                    message. Currently, as non-premium users, bots can set up to
                    one reaction per message. A custom emoji reaction can be
                    used if it is either already present on the message or
                    explicitly allowed by chat administrators. Paid reactions
                    can't be used by bots."
                  type: array
                  items:
                    $ref: '#/components/schemas/ReactionType'
                is_big:
                  description:
                    Pass *True* to set the reaction with a big animation
                  type: boolean
              required:
                - chat_id
                - message_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    'Identifier of the target message. If the message belongs to
                    a media group, the reaction is set to the first non-deleted
                    message in the group instead.'
                  type: integer
                reaction:
                  description:
                    "A JSON-serialized list of reaction types to set on the
                    message. Currently, as non-premium users, bots can set up to
                    one reaction per message. A custom emoji reaction can be
                    used if it is either already present on the message or
                    explicitly allowed by chat administrators. Paid reactions
                    can't be used by bots."
                  type: array
                  items:
                    $ref: '#/components/schemas/ReactionType'
                is_big:
                  description:
                    Pass *True* to set the reaction with a big animation
                  type: boolean
              required:
                - chat_id
                - message_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getUserProfilePhotos:
    post:
      description:
        'Use this method to get a list of profile pictures for a user. Returns a
        [UserProfilePhotos](https://core.telegram.org/bots/api/#userprofilephotos)
        object.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getuserprofilephotos'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                offset:
                  description:
                    'Sequential number of the first photo to be returned. By
                    default, all photos are returned.'
                  type: integer
                limit:
                  description:
                    Limits the number of photos to be retrieved. Values between
                    1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
              required:
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                offset:
                  description:
                    'Sequential number of the first photo to be returned. By
                    default, all photos are returned.'
                  type: integer
                limit:
                  description:
                    Limits the number of photos to be retrieved. Values between
                    1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
              required:
                - user_id
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                offset:
                  description:
                    'Sequential number of the first photo to be returned. By
                    default, all photos are returned.'
                  type: integer
                limit:
                  description:
                    Limits the number of photos to be retrieved. Values between
                    1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
              required:
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/UserProfilePhotos'
                required:
                  - ok
                  - result
  /setUserEmojiStatus:
    post:
      description:
        'Changes the emoji status for a given user that previously allowed the
        bot to manage their emoji status via the Mini App method
        [requestEmojiStatusAccess](https://core.telegram.org/bots/webapps#initializing-mini-apps).
        Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setuseremojistatus'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                emoji_status_custom_emoji_id:
                  description:
                    Custom emoji identifier of the emoji status to set. Pass an
                    empty string to remove the status.
                  type: string
                emoji_status_expiration_date:
                  description: 'Expiration date of the emoji status, if any'
                  type: integer
              required:
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                emoji_status_custom_emoji_id:
                  description:
                    Custom emoji identifier of the emoji status to set. Pass an
                    empty string to remove the status.
                  type: string
                emoji_status_expiration_date:
                  description: 'Expiration date of the emoji status, if any'
                  type: integer
              required:
                - user_id
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                emoji_status_custom_emoji_id:
                  description:
                    Custom emoji identifier of the emoji status to set. Pass an
                    empty string to remove the status.
                  type: string
                emoji_status_expiration_date:
                  description: 'Expiration date of the emoji status, if any'
                  type: integer
              required:
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getFile:
    post:
      description:
        'Use this method to get basic information about a file and prepare it
        for downloading. For the moment, bots can download files of up to 20MB
        in size. On success, a [File](https://core.telegram.org/bots/api/#file)
        object is returned. The file can then be downloaded via the link
        `https://api.telegram.org/file/bot<token>/<file_path>`, where
        `<file_path>` is taken from the response. It is guaranteed that the link
        will be valid for at least 1 hour. When the link expires, a new one can
        be requested by calling
        [getFile](https://core.telegram.org/bots/api/#getfile) again.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getfile'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                file_id:
                  description: File identifier to get information about
                  type: string
              required:
                - file_id
          multipart/form-data:
            schema:
              type: object
              properties:
                file_id:
                  description: File identifier to get information about
                  type: string
              required:
                - file_id
          application/json:
            schema:
              type: object
              properties:
                file_id:
                  description: File identifier to get information about
                  type: string
              required:
                - file_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/File'
                required:
                  - ok
                  - result
  /banChatMember:
    post:
      description:
        'Use this method to ban a user in a group, a supergroup or a channel. In
        the case of supergroups and channels, the user will not be able to
        return to the chat on their own using invite links, etc., unless
        [unbanned](https://core.telegram.org/bots/api/#unbanchatmember) first.
        The bot must be an administrator in the chat for this to work and must
        have the appropriate administrator rights. Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#banchatmember'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target group or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                until_date:
                  description:
                    Date when the user will be unbanned; Unix time. If user is
                    banned for more than 366 days or less than 30 seconds from
                    the current time they are considered to be banned forever.
                    Applied for supergroups and channels only.
                  type: integer
                revoke_messages:
                  description:
                    'Pass *True* to delete all messages from the chat for the
                    user that is being removed. If *False*, the user will be
                    able to see messages in the group that were sent before the
                    user was removed. Always *True* for supergroups and
                    channels.'
                  type: boolean
              required:
                - chat_id
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target group or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                until_date:
                  description:
                    Date when the user will be unbanned; Unix time. If user is
                    banned for more than 366 days or less than 30 seconds from
                    the current time they are considered to be banned forever.
                    Applied for supergroups and channels only.
                  type: integer
                revoke_messages:
                  description:
                    'Pass *True* to delete all messages from the chat for the
                    user that is being removed. If *False*, the user will be
                    able to see messages in the group that were sent before the
                    user was removed. Always *True* for supergroups and
                    channels.'
                  type: boolean
              required:
                - chat_id
                - user_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target group or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                until_date:
                  description:
                    Date when the user will be unbanned; Unix time. If user is
                    banned for more than 366 days or less than 30 seconds from
                    the current time they are considered to be banned forever.
                    Applied for supergroups and channels only.
                  type: integer
                revoke_messages:
                  description:
                    'Pass *True* to delete all messages from the chat for the
                    user that is being removed. If *False*, the user will be
                    able to see messages in the group that were sent before the
                    user was removed. Always *True* for supergroups and
                    channels.'
                  type: boolean
              required:
                - chat_id
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /unbanChatMember:
    post:
      description:
        "Use this method to unban a previously banned user in a supergroup or
        channel. The user will **not** return to the group or channel
        automatically, but will be able to join via link, etc. The bot must be
        an administrator for this to work. By default, this method guarantees
        that after the call the user is not a member of the chat, but will be
        able to join it. So if the user is a member of the chat they will also
        be **removed** from the chat. If you don't want this, use the parameter
        *only\\_if\\_banned*. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#unbanchatmember'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target group or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                only_if_banned:
                  description: Do nothing if the user is not banned
                  type: boolean
              required:
                - chat_id
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target group or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                only_if_banned:
                  description: Do nothing if the user is not banned
                  type: boolean
              required:
                - chat_id
                - user_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target group or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                only_if_banned:
                  description: Do nothing if the user is not banned
                  type: boolean
              required:
                - chat_id
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /restrictChatMember:
    post:
      description:
        Use this method to restrict a user in a supergroup. The bot must be an
        administrator in the supergroup for this to work and must have the
        appropriate administrator rights. Pass *True* for all permissions to
        lift restrictions from a user. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#restrictchatmember'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                permissions:
                  $ref: '#/components/schemas/ChatPermissions'
                use_independent_chat_permissions:
                  description:
                    "Pass *True* if chat permissions are set independently.
                    Otherwise, the *can\\_send\\_other\\_messages* and
                    *can\\_add\\_web\\_page\\_previews* permissions will imply
                    the *can\\_send\\_messages*, *can\\_send\\_audios*,
                    *can\\_send\\_documents*, *can\\_send\\_photos*,
                    *can\\_send\\_videos*, *can\\_send\\_video\\_notes*, and
                    *can\\_send\\_voice\\_notes* permissions; the
                    *can\\_send\\_polls* permission will imply the
                    *can\\_send\\_messages* permission."
                  type: boolean
                until_date:
                  description:
                    'Date when restrictions will be lifted for the user; Unix
                    time. If user is restricted for more than 366 days or less
                    than 30 seconds from the current time, they are considered
                    to be restricted forever'
                  type: integer
              required:
                - chat_id
                - user_id
                - permissions
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                permissions:
                  $ref: '#/components/schemas/ChatPermissions'
                use_independent_chat_permissions:
                  description:
                    "Pass *True* if chat permissions are set independently.
                    Otherwise, the *can\\_send\\_other\\_messages* and
                    *can\\_add\\_web\\_page\\_previews* permissions will imply
                    the *can\\_send\\_messages*, *can\\_send\\_audios*,
                    *can\\_send\\_documents*, *can\\_send\\_photos*,
                    *can\\_send\\_videos*, *can\\_send\\_video\\_notes*, and
                    *can\\_send\\_voice\\_notes* permissions; the
                    *can\\_send\\_polls* permission will imply the
                    *can\\_send\\_messages* permission."
                  type: boolean
                until_date:
                  description:
                    'Date when restrictions will be lifted for the user; Unix
                    time. If user is restricted for more than 366 days or less
                    than 30 seconds from the current time, they are considered
                    to be restricted forever'
                  type: integer
              required:
                - chat_id
                - user_id
                - permissions
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                permissions:
                  $ref: '#/components/schemas/ChatPermissions'
                use_independent_chat_permissions:
                  description:
                    "Pass *True* if chat permissions are set independently.
                    Otherwise, the *can\\_send\\_other\\_messages* and
                    *can\\_add\\_web\\_page\\_previews* permissions will imply
                    the *can\\_send\\_messages*, *can\\_send\\_audios*,
                    *can\\_send\\_documents*, *can\\_send\\_photos*,
                    *can\\_send\\_videos*, *can\\_send\\_video\\_notes*, and
                    *can\\_send\\_voice\\_notes* permissions; the
                    *can\\_send\\_polls* permission will imply the
                    *can\\_send\\_messages* permission."
                  type: boolean
                until_date:
                  description:
                    'Date when restrictions will be lifted for the user; Unix
                    time. If user is restricted for more than 366 days or less
                    than 30 seconds from the current time, they are considered
                    to be restricted forever'
                  type: integer
              required:
                - chat_id
                - user_id
                - permissions
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /promoteChatMember:
    post:
      description:
        Use this method to promote or demote a user in a supergroup or a
        channel. The bot must be an administrator in the chat for this to work
        and must have the appropriate administrator rights. Pass *False* for all
        boolean parameters to demote a user. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#promotechatmember'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                is_anonymous:
                  description:
                    "Pass *True* if the administrator's presence in the chat is
                    hidden"
                  type: boolean
                can_manage_chat:
                  description:
                    'Pass *True* if the administrator can access the chat event
                    log, get boost list, see hidden supergroup and channel
                    members, report spam messages and ignore slow mode. Implied
                    by any other administrator privilege.'
                  type: boolean
                can_delete_messages:
                  description:
                    Pass *True* if the administrator can delete messages of
                    other users
                  type: boolean
                can_manage_video_chats:
                  description:
                    Pass *True* if the administrator can manage video chats
                  type: boolean
                can_restrict_members:
                  description:
                    'Pass *True* if the administrator can restrict, ban or unban
                    chat members, or access supergroup statistics'
                  type: boolean
                can_promote_members:
                  description:
                    'Pass *True* if the administrator can add new administrators
                    with a subset of their own privileges or demote
                    administrators that they have promoted, directly or
                    indirectly (promoted by administrators that were appointed
                    by him)'
                  type: boolean
                can_change_info:
                  description:
                    'Pass *True* if the administrator can change chat title,
                    photo and other settings'
                  type: boolean
                can_invite_users:
                  description:
                    Pass *True* if the administrator can invite new users to the
                    chat
                  type: boolean
                can_post_stories:
                  description:
                    Pass *True* if the administrator can post stories to the
                    chat
                  type: boolean
                can_edit_stories:
                  description:
                    "Pass *True* if the administrator can edit stories posted by
                    other users, post stories to the chat page, pin chat
                    stories, and access the chat's story archive"
                  type: boolean
                can_delete_stories:
                  description:
                    Pass *True* if the administrator can delete stories posted
                    by other users
                  type: boolean
                can_post_messages:
                  description:
                    'Pass *True* if the administrator can post messages in the
                    channel, or access channel statistics; for channels only'
                  type: boolean
                can_edit_messages:
                  description:
                    Pass *True* if the administrator can edit messages of other
                    users and can pin messages; for channels only
                  type: boolean
                can_pin_messages:
                  description:
                    Pass *True* if the administrator can pin messages; for
                    supergroups only
                  type: boolean
                can_manage_topics:
                  description:
                    'Pass *True* if the user is allowed to create, rename,
                    close, and reopen forum topics; for supergroups only'
                  type: boolean
              required:
                - chat_id
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                is_anonymous:
                  description:
                    "Pass *True* if the administrator's presence in the chat is
                    hidden"
                  type: boolean
                can_manage_chat:
                  description:
                    'Pass *True* if the administrator can access the chat event
                    log, get boost list, see hidden supergroup and channel
                    members, report spam messages and ignore slow mode. Implied
                    by any other administrator privilege.'
                  type: boolean
                can_delete_messages:
                  description:
                    Pass *True* if the administrator can delete messages of
                    other users
                  type: boolean
                can_manage_video_chats:
                  description:
                    Pass *True* if the administrator can manage video chats
                  type: boolean
                can_restrict_members:
                  description:
                    'Pass *True* if the administrator can restrict, ban or unban
                    chat members, or access supergroup statistics'
                  type: boolean
                can_promote_members:
                  description:
                    'Pass *True* if the administrator can add new administrators
                    with a subset of their own privileges or demote
                    administrators that they have promoted, directly or
                    indirectly (promoted by administrators that were appointed
                    by him)'
                  type: boolean
                can_change_info:
                  description:
                    'Pass *True* if the administrator can change chat title,
                    photo and other settings'
                  type: boolean
                can_invite_users:
                  description:
                    Pass *True* if the administrator can invite new users to the
                    chat
                  type: boolean
                can_post_stories:
                  description:
                    Pass *True* if the administrator can post stories to the
                    chat
                  type: boolean
                can_edit_stories:
                  description:
                    "Pass *True* if the administrator can edit stories posted by
                    other users, post stories to the chat page, pin chat
                    stories, and access the chat's story archive"
                  type: boolean
                can_delete_stories:
                  description:
                    Pass *True* if the administrator can delete stories posted
                    by other users
                  type: boolean
                can_post_messages:
                  description:
                    'Pass *True* if the administrator can post messages in the
                    channel, or access channel statistics; for channels only'
                  type: boolean
                can_edit_messages:
                  description:
                    Pass *True* if the administrator can edit messages of other
                    users and can pin messages; for channels only
                  type: boolean
                can_pin_messages:
                  description:
                    Pass *True* if the administrator can pin messages; for
                    supergroups only
                  type: boolean
                can_manage_topics:
                  description:
                    'Pass *True* if the user is allowed to create, rename,
                    close, and reopen forum topics; for supergroups only'
                  type: boolean
              required:
                - chat_id
                - user_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                is_anonymous:
                  description:
                    "Pass *True* if the administrator's presence in the chat is
                    hidden"
                  type: boolean
                can_manage_chat:
                  description:
                    'Pass *True* if the administrator can access the chat event
                    log, get boost list, see hidden supergroup and channel
                    members, report spam messages and ignore slow mode. Implied
                    by any other administrator privilege.'
                  type: boolean
                can_delete_messages:
                  description:
                    Pass *True* if the administrator can delete messages of
                    other users
                  type: boolean
                can_manage_video_chats:
                  description:
                    Pass *True* if the administrator can manage video chats
                  type: boolean
                can_restrict_members:
                  description:
                    'Pass *True* if the administrator can restrict, ban or unban
                    chat members, or access supergroup statistics'
                  type: boolean
                can_promote_members:
                  description:
                    'Pass *True* if the administrator can add new administrators
                    with a subset of their own privileges or demote
                    administrators that they have promoted, directly or
                    indirectly (promoted by administrators that were appointed
                    by him)'
                  type: boolean
                can_change_info:
                  description:
                    'Pass *True* if the administrator can change chat title,
                    photo and other settings'
                  type: boolean
                can_invite_users:
                  description:
                    Pass *True* if the administrator can invite new users to the
                    chat
                  type: boolean
                can_post_stories:
                  description:
                    Pass *True* if the administrator can post stories to the
                    chat
                  type: boolean
                can_edit_stories:
                  description:
                    "Pass *True* if the administrator can edit stories posted by
                    other users, post stories to the chat page, pin chat
                    stories, and access the chat's story archive"
                  type: boolean
                can_delete_stories:
                  description:
                    Pass *True* if the administrator can delete stories posted
                    by other users
                  type: boolean
                can_post_messages:
                  description:
                    'Pass *True* if the administrator can post messages in the
                    channel, or access channel statistics; for channels only'
                  type: boolean
                can_edit_messages:
                  description:
                    Pass *True* if the administrator can edit messages of other
                    users and can pin messages; for channels only
                  type: boolean
                can_pin_messages:
                  description:
                    Pass *True* if the administrator can pin messages; for
                    supergroups only
                  type: boolean
                can_manage_topics:
                  description:
                    'Pass *True* if the user is allowed to create, rename,
                    close, and reopen forum topics; for supergroups only'
                  type: boolean
              required:
                - chat_id
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setChatAdministratorCustomTitle:
    post:
      description:
        Use this method to set a custom title for an administrator in a
        supergroup promoted by the bot. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setchatadministratorcustomtitle'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                custom_title:
                  description:
                    'New custom title for the administrator; 0-16 characters,
                    emoji are not allowed'
                  type: string
                  minLength: 0
                  maxLength: 16
              required:
                - chat_id
                - user_id
                - custom_title
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                custom_title:
                  description:
                    'New custom title for the administrator; 0-16 characters,
                    emoji are not allowed'
                  type: string
                  minLength: 0
                  maxLength: 16
              required:
                - chat_id
                - user_id
                - custom_title
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                custom_title:
                  description:
                    'New custom title for the administrator; 0-16 characters,
                    emoji are not allowed'
                  type: string
                  minLength: 0
                  maxLength: 16
              required:
                - chat_id
                - user_id
                - custom_title
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /banChatSenderChat:
    post:
      description:
        "Use this method to ban a channel chat in a supergroup or a channel.
        Until the chat is
        [unbanned](https://core.telegram.org/bots/api/#unbanchatsenderchat), the
        owner of the banned chat won't be able to send messages on behalf of
        **any of their channels**. The bot must be an administrator in the
        supergroup or channel for this to work and must have the appropriate
        administrator rights. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#banchatsenderchat'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sender_chat_id:
                  description: Unique identifier of the target sender chat
                  type: integer
              required:
                - chat_id
                - sender_chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sender_chat_id:
                  description: Unique identifier of the target sender chat
                  type: integer
              required:
                - chat_id
                - sender_chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sender_chat_id:
                  description: Unique identifier of the target sender chat
                  type: integer
              required:
                - chat_id
                - sender_chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /unbanChatSenderChat:
    post:
      description:
        Use this method to unban a previously banned channel chat in a
        supergroup or channel. The bot must be an administrator for this to work
        and must have the appropriate administrator rights. Returns *True* on
        success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#unbanchatsenderchat'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sender_chat_id:
                  description: Unique identifier of the target sender chat
                  type: integer
              required:
                - chat_id
                - sender_chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sender_chat_id:
                  description: Unique identifier of the target sender chat
                  type: integer
              required:
                - chat_id
                - sender_chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sender_chat_id:
                  description: Unique identifier of the target sender chat
                  type: integer
              required:
                - chat_id
                - sender_chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setChatPermissions:
    post:
      description:
        "Use this method to set default chat permissions for all members. The
        bot must be an administrator in the group or a supergroup for this to
        work and must have the *can\\_restrict\\_members* administrator rights.
        Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setchatpermissions'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                permissions:
                  $ref: '#/components/schemas/ChatPermissions'
                use_independent_chat_permissions:
                  description:
                    "Pass *True* if chat permissions are set independently.
                    Otherwise, the *can\\_send\\_other\\_messages* and
                    *can\\_add\\_web\\_page\\_previews* permissions will imply
                    the *can\\_send\\_messages*, *can\\_send\\_audios*,
                    *can\\_send\\_documents*, *can\\_send\\_photos*,
                    *can\\_send\\_videos*, *can\\_send\\_video\\_notes*, and
                    *can\\_send\\_voice\\_notes* permissions; the
                    *can\\_send\\_polls* permission will imply the
                    *can\\_send\\_messages* permission."
                  type: boolean
              required:
                - chat_id
                - permissions
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                permissions:
                  $ref: '#/components/schemas/ChatPermissions'
                use_independent_chat_permissions:
                  description:
                    "Pass *True* if chat permissions are set independently.
                    Otherwise, the *can\\_send\\_other\\_messages* and
                    *can\\_add\\_web\\_page\\_previews* permissions will imply
                    the *can\\_send\\_messages*, *can\\_send\\_audios*,
                    *can\\_send\\_documents*, *can\\_send\\_photos*,
                    *can\\_send\\_videos*, *can\\_send\\_video\\_notes*, and
                    *can\\_send\\_voice\\_notes* permissions; the
                    *can\\_send\\_polls* permission will imply the
                    *can\\_send\\_messages* permission."
                  type: boolean
              required:
                - chat_id
                - permissions
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                permissions:
                  $ref: '#/components/schemas/ChatPermissions'
                use_independent_chat_permissions:
                  description:
                    "Pass *True* if chat permissions are set independently.
                    Otherwise, the *can\\_send\\_other\\_messages* and
                    *can\\_add\\_web\\_page\\_previews* permissions will imply
                    the *can\\_send\\_messages*, *can\\_send\\_audios*,
                    *can\\_send\\_documents*, *can\\_send\\_photos*,
                    *can\\_send\\_videos*, *can\\_send\\_video\\_notes*, and
                    *can\\_send\\_voice\\_notes* permissions; the
                    *can\\_send\\_polls* permission will imply the
                    *can\\_send\\_messages* permission."
                  type: boolean
              required:
                - chat_id
                - permissions
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /exportChatInviteLink:
    post:
      description:
        Use this method to generate a new primary invite link for a chat; any
        previously generated primary link is revoked. The bot must be an
        administrator in the chat for this to work and must have the appropriate
        administrator rights. Returns the new invite link as *String* on
        success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#exportchatinvitelink'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: string
                required:
                  - ok
                  - result
  /createChatInviteLink:
    post:
      description:
        'Use this method to create an additional invite link for a chat. The bot
        must be an administrator in the chat for this to work and must have the
        appropriate administrator rights. The link can be revoked using the
        method
        [revokeChatInviteLink](https://core.telegram.org/bots/api/#revokechatinvitelink).
        Returns the new invite link as
        [ChatInviteLink](https://core.telegram.org/bots/api/#chatinvitelink)
        object.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#createchatinvitelink'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                expire_date:
                  description:
                    Point in time (Unix timestamp) when the link will expire
                  type: integer
                member_limit:
                  description:
                    The maximum number of users that can be members of the chat
                    simultaneously after joining the chat via this invite link;
                    1-99999
                  type: integer
                creates_join_request:
                  description:
                    "*True*, if users joining the chat via the link need to be
                    approved by chat administrators. If *True*, *member\\_limit*
                    can't be specified"
                  type: boolean
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                expire_date:
                  description:
                    Point in time (Unix timestamp) when the link will expire
                  type: integer
                member_limit:
                  description:
                    The maximum number of users that can be members of the chat
                    simultaneously after joining the chat via this invite link;
                    1-99999
                  type: integer
                creates_join_request:
                  description:
                    "*True*, if users joining the chat via the link need to be
                    approved by chat administrators. If *True*, *member\\_limit*
                    can't be specified"
                  type: boolean
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                expire_date:
                  description:
                    Point in time (Unix timestamp) when the link will expire
                  type: integer
                member_limit:
                  description:
                    The maximum number of users that can be members of the chat
                    simultaneously after joining the chat via this invite link;
                    1-99999
                  type: integer
                creates_join_request:
                  description:
                    "*True*, if users joining the chat via the link need to be
                    approved by chat administrators. If *True*, *member\\_limit*
                    can't be specified"
                  type: boolean
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatInviteLink'
                required:
                  - ok
                  - result
  /editChatInviteLink:
    post:
      description:
        'Use this method to edit a non-primary invite link created by the bot.
        The bot must be an administrator in the chat for this to work and must
        have the appropriate administrator rights. Returns the edited invite
        link as a
        [ChatInviteLink](https://core.telegram.org/bots/api/#chatinvitelink)
        object.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editchatinvitelink'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to edit
                  type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                expire_date:
                  description:
                    Point in time (Unix timestamp) when the link will expire
                  type: integer
                member_limit:
                  description:
                    The maximum number of users that can be members of the chat
                    simultaneously after joining the chat via this invite link;
                    1-99999
                  type: integer
                creates_join_request:
                  description:
                    "*True*, if users joining the chat via the link need to be
                    approved by chat administrators. If *True*, *member\\_limit*
                    can't be specified"
                  type: boolean
              required:
                - chat_id
                - invite_link
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to edit
                  type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                expire_date:
                  description:
                    Point in time (Unix timestamp) when the link will expire
                  type: integer
                member_limit:
                  description:
                    The maximum number of users that can be members of the chat
                    simultaneously after joining the chat via this invite link;
                    1-99999
                  type: integer
                creates_join_request:
                  description:
                    "*True*, if users joining the chat via the link need to be
                    approved by chat administrators. If *True*, *member\\_limit*
                    can't be specified"
                  type: boolean
              required:
                - chat_id
                - invite_link
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to edit
                  type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                expire_date:
                  description:
                    Point in time (Unix timestamp) when the link will expire
                  type: integer
                member_limit:
                  description:
                    The maximum number of users that can be members of the chat
                    simultaneously after joining the chat via this invite link;
                    1-99999
                  type: integer
                creates_join_request:
                  description:
                    "*True*, if users joining the chat via the link need to be
                    approved by chat administrators. If *True*, *member\\_limit*
                    can't be specified"
                  type: boolean
              required:
                - chat_id
                - invite_link
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatInviteLink'
                required:
                  - ok
                  - result
  /createChatSubscriptionInviteLink:
    post:
      description:
        "Use this method to create a [subscription invite
        link](https://telegram.org/blog/superchannels-star-reactions-subscriptions#star-subscriptions)
        for a channel chat. The bot must have the *can\\_invite\\_users*
        administrator rights. The link can be edited using the method
        [editChatSubscriptionInviteLink](https://core.telegram.org/bots/api/#editchatsubscriptioninvitelink)
        or revoked using the method
        [revokeChatInviteLink](https://core.telegram.org/bots/api/#revokechatinvitelink).
        Returns the new invite link as a
        [ChatInviteLink](https://core.telegram.org/bots/api/#chatinvitelink)
        object."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#createchatsubscriptioninvitelink'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target channel chat or username
                    of the target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                subscription_period:
                  description:
                    'The number of seconds the subscription will be active for
                    before the next payment. Currently, it must always be
                    2592000 (30 days).'
                  type: integer
                subscription_price:
                  description:
                    The amount of Telegram Stars a user must pay initially and
                    after each subsequent subscription period to be a member of
                    the chat; 1-2500
                  type: integer
              required:
                - chat_id
                - subscription_period
                - subscription_price
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target channel chat or username
                    of the target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                subscription_period:
                  description:
                    'The number of seconds the subscription will be active for
                    before the next payment. Currently, it must always be
                    2592000 (30 days).'
                  type: integer
                subscription_price:
                  description:
                    The amount of Telegram Stars a user must pay initially and
                    after each subsequent subscription period to be a member of
                    the chat; 1-2500
                  type: integer
              required:
                - chat_id
                - subscription_period
                - subscription_price
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target channel chat or username
                    of the target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
                subscription_period:
                  description:
                    'The number of seconds the subscription will be active for
                    before the next payment. Currently, it must always be
                    2592000 (30 days).'
                  type: integer
                subscription_price:
                  description:
                    The amount of Telegram Stars a user must pay initially and
                    after each subsequent subscription period to be a member of
                    the chat; 1-2500
                  type: integer
              required:
                - chat_id
                - subscription_period
                - subscription_price
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatInviteLink'
                required:
                  - ok
                  - result
  /editChatSubscriptionInviteLink:
    post:
      description:
        "Use this method to edit a subscription invite link created by the bot.
        The bot must have the *can\\_invite\\_users* administrator rights.
        Returns the edited invite link as a
        [ChatInviteLink](https://core.telegram.org/bots/api/#chatinvitelink)
        object."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editchatsubscriptioninvitelink'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to edit
                  type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
              required:
                - chat_id
                - invite_link
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to edit
                  type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
              required:
                - chat_id
                - invite_link
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to edit
                  type: string
                name:
                  description: Invite link name; 0-32 characters
                  type: string
                  minLength: 0
                  maxLength: 32
              required:
                - chat_id
                - invite_link
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatInviteLink'
                required:
                  - ok
                  - result
  /revokeChatInviteLink:
    post:
      description:
        'Use this method to revoke an invite link created by the bot. If the
        primary link is revoked, a new link is automatically generated. The bot
        must be an administrator in the chat for this to work and must have the
        appropriate administrator rights. Returns the revoked invite link as
        [ChatInviteLink](https://core.telegram.org/bots/api/#chatinvitelink)
        object.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#revokechatinvitelink'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier of the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to revoke
                  type: string
              required:
                - chat_id
                - invite_link
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier of the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to revoke
                  type: string
              required:
                - chat_id
                - invite_link
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier of the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                invite_link:
                  description: The invite link to revoke
                  type: string
              required:
                - chat_id
                - invite_link
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatInviteLink'
                required:
                  - ok
                  - result
  /approveChatJoinRequest:
    post:
      description:
        "Use this method to approve a chat join request. The bot must be an
        administrator in the chat for this to work and must have the
        *can\\_invite\\_users* administrator right. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#approvechatjoinrequest'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /declineChatJoinRequest:
    post:
      description:
        "Use this method to decline a chat join request. The bot must be an
        administrator in the chat for this to work and must have the
        *can\\_invite\\_users* administrator right. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#declinechatjoinrequest'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setChatPhoto:
    post:
      description:
        "Use this method to set a new profile photo for the chat. Photos can't
        be changed for private chats. The bot must be an administrator in the
        chat for this to work and must have the appropriate administrator
        rights. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setchatphoto'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                photo:
                  $ref: '#/components/schemas/InputFile'
              required:
                - chat_id
                - photo
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteChatPhoto:
    post:
      description:
        "Use this method to delete a chat photo. Photos can't be changed for
        private chats. The bot must be an administrator in the chat for this to
        work and must have the appropriate administrator rights. Returns *True*
        on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletechatphoto'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setChatTitle:
    post:
      description:
        "Use this method to change the title of a chat. Titles can't be changed
        for private chats. The bot must be an administrator in the chat for this
        to work and must have the appropriate administrator rights. Returns
        *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setchattitle'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                title:
                  description: 'New chat title, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - chat_id
                - title
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                title:
                  description: 'New chat title, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - chat_id
                - title
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                title:
                  description: 'New chat title, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - chat_id
                - title
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setChatDescription:
    post:
      description:
        'Use this method to change the description of a group, a supergroup or a
        channel. The bot must be an administrator in the chat for this to work
        and must have the appropriate administrator rights. Returns *True* on
        success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setchatdescription'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                description:
                  description: 'New chat description, 0-255 characters'
                  type: string
                  minLength: 0
                  maxLength: 255
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                description:
                  description: 'New chat description, 0-255 characters'
                  type: string
                  minLength: 0
                  maxLength: 255
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                description:
                  description: 'New chat description, 0-255 characters'
                  type: string
                  minLength: 0
                  maxLength: 255
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /pinChatMessage:
    post:
      description:
        "Use this method to add a message to the list of pinned messages in a
        chat. If the chat is not a private chat, the bot must be an
        administrator in the chat for this to work and must have the
        'can\\_pin\\_messages' administrator right in a supergroup or
        'can\\_edit\\_messages' administrator right in a channel. Returns *True*
        on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#pinchatmessage'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be pinned
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of a message to pin
                  type: integer
                disable_notification:
                  description:
                    Pass *True* if it is not necessary to send a notification to
                    all chat members about the new pinned message. Notifications
                    are always disabled in channels and private chats.
                  type: boolean
              required:
                - chat_id
                - message_id
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be pinned
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of a message to pin
                  type: integer
                disable_notification:
                  description:
                    Pass *True* if it is not necessary to send a notification to
                    all chat members about the new pinned message. Notifications
                    are always disabled in channels and private chats.
                  type: boolean
              required:
                - chat_id
                - message_id
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be pinned
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of a message to pin
                  type: integer
                disable_notification:
                  description:
                    Pass *True* if it is not necessary to send a notification to
                    all chat members about the new pinned message. Notifications
                    are always disabled in channels and private chats.
                  type: boolean
              required:
                - chat_id
                - message_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /unpinChatMessage:
    post:
      description:
        "Use this method to remove a message from the list of pinned messages in
        a chat. If the chat is not a private chat, the bot must be an
        administrator in the chat for this to work and must have the
        'can\\_pin\\_messages' administrator right in a supergroup or
        'can\\_edit\\_messages' administrator right in a channel. Returns *True*
        on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#unpinchatmessage'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be unpinned
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Identifier of the message to unpin. Required if
                    *business\\_connection\\_id* is specified. If not specified,
                    the most recent pinned message (by sending date) will be
                    unpinned."
                  type: integer
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be unpinned
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Identifier of the message to unpin. Required if
                    *business\\_connection\\_id* is specified. If not specified,
                    the most recent pinned message (by sending date) will be
                    unpinned."
                  type: integer
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be unpinned
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Identifier of the message to unpin. Required if
                    *business\\_connection\\_id* is specified. If not specified,
                    the most recent pinned message (by sending date) will be
                    unpinned."
                  type: integer
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /unpinAllChatMessages:
    post:
      description:
        "Use this method to clear the list of pinned messages in a chat. If the
        chat is not a private chat, the bot must be an administrator in the chat
        for this to work and must have the 'can\\_pin\\_messages' administrator
        right in a supergroup or 'can\\_edit\\_messages' administrator right in
        a channel. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#unpinallchatmessages'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /leaveChat:
    post:
      description:
        'Use this method for your bot to leave a group, supergroup or channel.
        Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#leavechat'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getChat:
    post:
      description:
        'Use this method to get up-to-date information about the chat. Returns a
        [ChatFullInfo](https://core.telegram.org/bots/api/#chatfullinfo) object
        on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getchat'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatFullInfo'
                required:
                  - ok
                  - result
  /getChatAdministrators:
    post:
      description:
        "Use this method to get a list of administrators in a chat, which aren't
        bots. Returns an Array of
        [ChatMember](https://core.telegram.org/bots/api/#chatmember) objects."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getchatadministrators'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/ChatMember'
                required:
                  - ok
                  - result
  /getChatMemberCount:
    post:
      description:
        Use this method to get the number of members in a chat. Returns *Int* on
        success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getchatmembercount'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: integer
                required:
                  - ok
                  - result
  /getChatMember:
    post:
      description:
        'Use this method to get information about a member of a chat. The method
        is only guaranteed to work for other users if the bot is an
        administrator in the chat. Returns a
        [ChatMember](https://core.telegram.org/bots/api/#chatmember) object on
        success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getchatmember'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup or channel (in the format
                    `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatMember'
                required:
                  - ok
                  - result
  /setChatStickerSet:
    post:
      description:
        "Use this method to set a new group sticker set for a supergroup. The
        bot must be an administrator in the chat for this to work and must have
        the appropriate administrator rights. Use the field
        *can\\_set\\_sticker\\_set* optionally returned in
        [getChat](https://core.telegram.org/bots/api/#getchat) requests to check
        if the bot can use this method. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setchatstickerset'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sticker_set_name:
                  description:
                    Name of the sticker set to be set as the group sticker set
                  type: string
              required:
                - chat_id
                - sticker_set_name
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sticker_set_name:
                  description:
                    Name of the sticker set to be set as the group sticker set
                  type: string
              required:
                - chat_id
                - sticker_set_name
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                sticker_set_name:
                  description:
                    Name of the sticker set to be set as the group sticker set
                  type: string
              required:
                - chat_id
                - sticker_set_name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteChatStickerSet:
    post:
      description:
        "Use this method to delete a group sticker set from a supergroup. The
        bot must be an administrator in the chat for this to work and must have
        the appropriate administrator rights. Use the field
        *can\\_set\\_sticker\\_set* optionally returned in
        [getChat](https://core.telegram.org/bots/api/#getchat) requests to check
        if the bot can use this method. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletechatstickerset'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getForumTopicIconStickers:
    post:
      description:
        'Use this method to get custom emoji stickers, which can be used as a
        forum topic icon by any user. Requires no parameters. Returns an Array
        of [Sticker](https://core.telegram.org/bots/api/#sticker) objects.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getforumtopiciconstickers'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/Sticker'
                required:
                  - ok
                  - result
  /createForumTopic:
    post:
      description:
        "Use this method to create a topic in a forum supergroup chat. The bot
        must be an administrator in the chat for this to work and must have the
        *can\\_manage\\_topics* administrator rights. Returns information about
        the created topic as a
        [ForumTopic](https://core.telegram.org/bots/api/#forumtopic) object."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#createforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: 'Topic name, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
                icon_color:
                  description:
                    'Color of the topic icon in RGB format. Currently, must be
                    one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331
                    (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or
                    16478047 (0xFB6F5F)'
                  type: integer
                  enum:
                    - 7322096
                    - 16766590
                    - 13338331
                    - 9367192
                    - 16749490
                    - 16478047
                icon_custom_emoji_id:
                  description:
                    'Unique identifier of the custom emoji shown as the topic
                    icon. Use
                    [getForumTopicIconStickers](https://core.telegram.org/bots/api/#getforumtopiciconstickers)
                    to get all allowed custom emoji identifiers.'
                  type: string
              required:
                - chat_id
                - name
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: 'Topic name, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
                icon_color:
                  description:
                    'Color of the topic icon in RGB format. Currently, must be
                    one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331
                    (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or
                    16478047 (0xFB6F5F)'
                  type: integer
                  enum:
                    - 7322096
                    - 16766590
                    - 13338331
                    - 9367192
                    - 16749490
                    - 16478047
                icon_custom_emoji_id:
                  description:
                    'Unique identifier of the custom emoji shown as the topic
                    icon. Use
                    [getForumTopicIconStickers](https://core.telegram.org/bots/api/#getforumtopiciconstickers)
                    to get all allowed custom emoji identifiers.'
                  type: string
              required:
                - chat_id
                - name
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: 'Topic name, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
                icon_color:
                  description:
                    'Color of the topic icon in RGB format. Currently, must be
                    one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331
                    (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or
                    16478047 (0xFB6F5F)'
                  type: integer
                  enum:
                    - 7322096
                    - 16766590
                    - 13338331
                    - 9367192
                    - 16749490
                    - 16478047
                icon_custom_emoji_id:
                  description:
                    'Unique identifier of the custom emoji shown as the topic
                    icon. Use
                    [getForumTopicIconStickers](https://core.telegram.org/bots/api/#getforumtopiciconstickers)
                    to get all allowed custom emoji identifiers.'
                  type: string
              required:
                - chat_id
                - name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ForumTopic'
                required:
                  - ok
                  - result
  /editForumTopic:
    post:
      description:
        "Use this method to edit name and icon of a topic in a forum supergroup
        chat. The bot must be an administrator in the chat for this to work and
        must have the *can\\_manage\\_topics* administrator rights, unless it is
        the creator of the topic. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
                name:
                  description:
                    'New topic name, 0-128 characters. If not specified or
                    empty, the current name of the topic will be kept'
                  type: string
                  minLength: 0
                  maxLength: 128
                icon_custom_emoji_id:
                  description:
                    'New unique identifier of the custom emoji shown as the
                    topic icon. Use
                    [getForumTopicIconStickers](https://core.telegram.org/bots/api/#getforumtopiciconstickers)
                    to get all allowed custom emoji identifiers. Pass an empty
                    string to remove the icon. If not specified, the current
                    icon will be kept'
                  type: string
              required:
                - chat_id
                - message_thread_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
                name:
                  description:
                    'New topic name, 0-128 characters. If not specified or
                    empty, the current name of the topic will be kept'
                  type: string
                  minLength: 0
                  maxLength: 128
                icon_custom_emoji_id:
                  description:
                    'New unique identifier of the custom emoji shown as the
                    topic icon. Use
                    [getForumTopicIconStickers](https://core.telegram.org/bots/api/#getforumtopiciconstickers)
                    to get all allowed custom emoji identifiers. Pass an empty
                    string to remove the icon. If not specified, the current
                    icon will be kept'
                  type: string
              required:
                - chat_id
                - message_thread_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
                name:
                  description:
                    'New topic name, 0-128 characters. If not specified or
                    empty, the current name of the topic will be kept'
                  type: string
                  minLength: 0
                  maxLength: 128
                icon_custom_emoji_id:
                  description:
                    'New unique identifier of the custom emoji shown as the
                    topic icon. Use
                    [getForumTopicIconStickers](https://core.telegram.org/bots/api/#getforumtopiciconstickers)
                    to get all allowed custom emoji identifiers. Pass an empty
                    string to remove the icon. If not specified, the current
                    icon will be kept'
                  type: string
              required:
                - chat_id
                - message_thread_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /closeForumTopic:
    post:
      description:
        "Use this method to close an open topic in a forum supergroup chat. The
        bot must be an administrator in the chat for this to work and must have
        the *can\\_manage\\_topics* administrator rights, unless it is the
        creator of the topic. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#closeforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /reopenForumTopic:
    post:
      description:
        "Use this method to reopen a closed topic in a forum supergroup chat.
        The bot must be an administrator in the chat for this to work and must
        have the *can\\_manage\\_topics* administrator rights, unless it is the
        creator of the topic. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#reopenforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteForumTopic:
    post:
      description:
        "Use this method to delete a forum topic along with all its messages in
        a forum supergroup chat. The bot must be an administrator in the chat
        for this to work and must have the *can\\_delete\\_messages*
        administrator rights. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deleteforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /unpinAllForumTopicMessages:
    post:
      description:
        "Use this method to clear the list of pinned messages in a forum topic.
        The bot must be an administrator in the chat for this to work and must
        have the *can\\_pin\\_messages* administrator right in the supergroup.
        Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#unpinallforumtopicmessages'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread of the forum
                    topic
                  type: integer
              required:
                - chat_id
                - message_thread_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /editGeneralForumTopic:
    post:
      description:
        "Use this method to edit the name of the 'General' topic in a forum
        supergroup chat. The bot must be an administrator in the chat for this
        to work and must have the *can\\_manage\\_topics* administrator rights.
        Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editgeneralforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: 'New topic name, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - chat_id
                - name
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: 'New topic name, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - chat_id
                - name
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                name:
                  description: 'New topic name, 1-128 characters'
                  type: string
                  minLength: 1
                  maxLength: 128
              required:
                - chat_id
                - name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /closeGeneralForumTopic:
    post:
      description:
        "Use this method to close an open 'General' topic in a forum supergroup
        chat. The bot must be an administrator in the chat for this to work and
        must have the *can\\_manage\\_topics* administrator rights. Returns
        *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#closegeneralforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /reopenGeneralForumTopic:
    post:
      description:
        "Use this method to reopen a closed 'General' topic in a forum
        supergroup chat. The bot must be an administrator in the chat for this
        to work and must have the *can\\_manage\\_topics* administrator rights.
        The topic will be automatically unhidden if it was hidden. Returns
        *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#reopengeneralforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /hideGeneralForumTopic:
    post:
      description:
        "Use this method to hide the 'General' topic in a forum supergroup chat.
        The bot must be an administrator in the chat for this to work and must
        have the *can\\_manage\\_topics* administrator rights. The topic will be
        automatically closed if it was open. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#hidegeneralforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /unhideGeneralForumTopic:
    post:
      description:
        "Use this method to unhide the 'General' topic in a forum supergroup
        chat. The bot must be an administrator in the chat for this to work and
        must have the *can\\_manage\\_topics* administrator rights. Returns
        *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#unhidegeneralforumtopic'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /unpinAllGeneralForumTopicMessages:
    post:
      description:
        "Use this method to clear the list of pinned messages in a General forum
        topic. The bot must be an administrator in the chat for this to work and
        must have the *can\\_pin\\_messages* administrator right in the
        supergroup. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#unpinallgeneralforumtopicmessages'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target supergroup (in the format `@supergroupusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /answerCallbackQuery:
    post:
      description:
        "Use this method to send answers to callback queries sent from [inline
        keyboards](https://core.telegram.org/bots/features#inline-keyboards).
        The answer will be displayed to the user as a notification at the top of
        the chat screen or as an alert. On success, *True* is
        returned.\n\nAlternatively, the user can be redirected to the specified
        Game URL. For this option to work, you must first create a game for your
        bot via [@BotFather](https://t.me/botfather) and accept the terms.
        Otherwise, you may use links like `t.me/your_bot?start=XXXX` that open
        your bot with a parameter."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#answercallbackquery'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                callback_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                text:
                  description:
                    'Text of the notification. If not specified, nothing will be
                    shown to the user, 0-200 characters'
                  type: string
                  minLength: 0
                  maxLength: 200
                show_alert:
                  description:
                    'If *True*, an alert will be shown by the client instead of
                    a notification at the top of the chat screen. Defaults to
                    *false*.'
                  default: false
                  type: boolean
                url:
                  description:
                    "URL that will be opened by the user's client. If you have
                    created a [Game](https://core.telegram.org/bots/api/#game)
                    and accepted the conditions via
                    [@BotFather](https://t.me/botfather), specify the URL that
                    opens your game - note that this will only work if the query
                    comes from a
                    [*callback\\_game*](https://core.telegram.org/bots/api/#inlinekeyboardbutton)
                    button.  \n\nOtherwise, you may use links like
                    `t.me/your_bot?start=XXXX` that open your bot with a
                    parameter."
                  type: string
                cache_time:
                  description:
                    The maximum amount of time in seconds that the result of the
                    callback query may be cached client-side. Telegram apps will
                    support caching starting in version 3.14. Defaults to 0.
                  default: 0
                  type: integer
              required:
                - callback_query_id
          multipart/form-data:
            schema:
              type: object
              properties:
                callback_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                text:
                  description:
                    'Text of the notification. If not specified, nothing will be
                    shown to the user, 0-200 characters'
                  type: string
                  minLength: 0
                  maxLength: 200
                show_alert:
                  description:
                    'If *True*, an alert will be shown by the client instead of
                    a notification at the top of the chat screen. Defaults to
                    *false*.'
                  default: false
                  type: boolean
                url:
                  description:
                    "URL that will be opened by the user's client. If you have
                    created a [Game](https://core.telegram.org/bots/api/#game)
                    and accepted the conditions via
                    [@BotFather](https://t.me/botfather), specify the URL that
                    opens your game - note that this will only work if the query
                    comes from a
                    [*callback\\_game*](https://core.telegram.org/bots/api/#inlinekeyboardbutton)
                    button.  \n\nOtherwise, you may use links like
                    `t.me/your_bot?start=XXXX` that open your bot with a
                    parameter."
                  type: string
                cache_time:
                  description:
                    The maximum amount of time in seconds that the result of the
                    callback query may be cached client-side. Telegram apps will
                    support caching starting in version 3.14. Defaults to 0.
                  default: 0
                  type: integer
              required:
                - callback_query_id
          application/json:
            schema:
              type: object
              properties:
                callback_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                text:
                  description:
                    'Text of the notification. If not specified, nothing will be
                    shown to the user, 0-200 characters'
                  type: string
                  minLength: 0
                  maxLength: 200
                show_alert:
                  description:
                    'If *True*, an alert will be shown by the client instead of
                    a notification at the top of the chat screen. Defaults to
                    *false*.'
                  default: false
                  type: boolean
                url:
                  description:
                    "URL that will be opened by the user's client. If you have
                    created a [Game](https://core.telegram.org/bots/api/#game)
                    and accepted the conditions via
                    [@BotFather](https://t.me/botfather), specify the URL that
                    opens your game - note that this will only work if the query
                    comes from a
                    [*callback\\_game*](https://core.telegram.org/bots/api/#inlinekeyboardbutton)
                    button.  \n\nOtherwise, you may use links like
                    `t.me/your_bot?start=XXXX` that open your bot with a
                    parameter."
                  type: string
                cache_time:
                  description:
                    The maximum amount of time in seconds that the result of the
                    callback query may be cached client-side. Telegram apps will
                    support caching starting in version 3.14. Defaults to 0.
                  default: 0
                  type: integer
              required:
                - callback_query_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getUserChatBoosts:
    post:
      description:
        'Use this method to get the list of boosts added to a chat by a user.
        Requires administrator rights in the chat. Returns a
        [UserChatBoosts](https://core.telegram.org/bots/api/#userchatboosts)
        object.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getuserchatboosts'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the chat or username of the channel
                    (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the chat or username of the channel
                    (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the chat or username of the channel
                    (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - chat_id
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/UserChatBoosts'
                required:
                  - ok
                  - result
  /getBusinessConnection:
    post:
      description:
        'Use this method to get information about the connection of the bot with
        a business account. Returns a
        [BusinessConnection](https://core.telegram.org/bots/api/#businessconnection)
        object on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getbusinessconnection'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description: Unique identifier of the business connection
                  type: string
              required:
                - business_connection_id
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description: Unique identifier of the business connection
                  type: string
              required:
                - business_connection_id
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description: Unique identifier of the business connection
                  type: string
              required:
                - business_connection_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/BusinessConnection'
                required:
                  - ok
                  - result
  /setMyCommands:
    post:
      description:
        "Use this method to change the list of the bot's commands. See [this
        manual](https://core.telegram.org/bots/features#commands) for more
        details about bot commands. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setmycommands'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                commands:
                  description:
                    "A JSON-serialized list of bot commands to be set as the
                    list of the bot's commands. At most 100 commands can be
                    specified."
                  type: array
                  items:
                    $ref: '#/components/schemas/BotCommand'
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, commands
                    will be applied to all users from the given scope, for whose
                    language there are no dedicated commands'
                  type: string
              required:
                - commands
          multipart/form-data:
            schema:
              type: object
              properties:
                commands:
                  description:
                    "A JSON-serialized list of bot commands to be set as the
                    list of the bot's commands. At most 100 commands can be
                    specified."
                  type: array
                  items:
                    $ref: '#/components/schemas/BotCommand'
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, commands
                    will be applied to all users from the given scope, for whose
                    language there are no dedicated commands'
                  type: string
              required:
                - commands
          application/json:
            schema:
              type: object
              properties:
                commands:
                  description:
                    "A JSON-serialized list of bot commands to be set as the
                    list of the bot's commands. At most 100 commands can be
                    specified."
                  type: array
                  items:
                    $ref: '#/components/schemas/BotCommand'
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, commands
                    will be applied to all users from the given scope, for whose
                    language there are no dedicated commands'
                  type: string
              required:
                - commands
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteMyCommands:
    post:
      description:
        "Use this method to delete the list of the bot's commands for the given
        scope and user language. After deletion, [higher level
        commands](https://core.telegram.org/bots/api/#determining-list-of-commands)
        will be shown to affected users. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletemycommands'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, commands
                    will be applied to all users from the given scope, for whose
                    language there are no dedicated commands'
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, commands
                    will be applied to all users from the given scope, for whose
                    language there are no dedicated commands'
                  type: string
          application/json:
            schema:
              type: object
              properties:
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, commands
                    will be applied to all users from the given scope, for whose
                    language there are no dedicated commands'
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getMyCommands:
    post:
      description:
        "Use this method to get the current list of the bot's commands for the
        given scope and user language. Returns an Array of
        [BotCommand](https://core.telegram.org/bots/api/#botcommand) objects. If
        commands aren't set, an empty list is returned."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getmycommands'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          application/json:
            schema:
              type: object
              properties:
                scope:
                  $ref: '#/components/schemas/BotCommandScope'
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/BotCommand'
                required:
                  - ok
                  - result
  /setMyName:
    post:
      description:
        "Use this method to change the bot's name. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setmyname'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                name:
                  description:
                    New bot name; 0-64 characters. Pass an empty string to
                    remove the dedicated name for the given language.
                  type: string
                  minLength: 0
                  maxLength: 64
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the name
                    will be shown to all users for whose language there is no
                    dedicated name.'
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  description:
                    New bot name; 0-64 characters. Pass an empty string to
                    remove the dedicated name for the given language.
                  type: string
                  minLength: 0
                  maxLength: 64
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the name
                    will be shown to all users for whose language there is no
                    dedicated name.'
                  type: string
          application/json:
            schema:
              type: object
              properties:
                name:
                  description:
                    New bot name; 0-64 characters. Pass an empty string to
                    remove the dedicated name for the given language.
                  type: string
                  minLength: 0
                  maxLength: 64
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the name
                    will be shown to all users for whose language there is no
                    dedicated name.'
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getMyName:
    post:
      description:
        'Use this method to get the current bot name for the given user
        language. Returns [BotName](https://core.telegram.org/bots/api/#botname)
        on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getmyname'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          application/json:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/BotName'
                required:
                  - ok
                  - result
  /setMyDescription:
    post:
      description:
        "Use this method to change the bot's description, which is shown in the
        chat with the bot if the chat is empty. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setmydescription'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                description:
                  description:
                    New bot description; 0-512 characters. Pass an empty string
                    to remove the dedicated description for the given language.
                  type: string
                  minLength: 0
                  maxLength: 512
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the
                    description will be applied to all users for whose language
                    there is no dedicated description.'
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                description:
                  description:
                    New bot description; 0-512 characters. Pass an empty string
                    to remove the dedicated description for the given language.
                  type: string
                  minLength: 0
                  maxLength: 512
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the
                    description will be applied to all users for whose language
                    there is no dedicated description.'
                  type: string
          application/json:
            schema:
              type: object
              properties:
                description:
                  description:
                    New bot description; 0-512 characters. Pass an empty string
                    to remove the dedicated description for the given language.
                  type: string
                  minLength: 0
                  maxLength: 512
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the
                    description will be applied to all users for whose language
                    there is no dedicated description.'
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getMyDescription:
    post:
      description:
        'Use this method to get the current bot description for the given user
        language. Returns
        [BotDescription](https://core.telegram.org/bots/api/#botdescription) on
        success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getmydescription'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          application/json:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/BotDescription'
                required:
                  - ok
                  - result
  /setMyShortDescription:
    post:
      description:
        "Use this method to change the bot's short description, which is shown
        on the bot's profile page and is sent together with the link when users
        share the bot. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setmyshortdescription'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                short_description:
                  description:
                    New short description for the bot; 0-120 characters. Pass an
                    empty string to remove the dedicated short description for
                    the given language.
                  type: string
                  minLength: 0
                  maxLength: 120
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the short
                    description will be applied to all users for whose language
                    there is no dedicated short description.'
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                short_description:
                  description:
                    New short description for the bot; 0-120 characters. Pass an
                    empty string to remove the dedicated short description for
                    the given language.
                  type: string
                  minLength: 0
                  maxLength: 120
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the short
                    description will be applied to all users for whose language
                    there is no dedicated short description.'
                  type: string
          application/json:
            schema:
              type: object
              properties:
                short_description:
                  description:
                    New short description for the bot; 0-120 characters. Pass an
                    empty string to remove the dedicated short description for
                    the given language.
                  type: string
                  minLength: 0
                  maxLength: 120
                language_code:
                  description:
                    'A two-letter ISO 639-1 language code. If empty, the short
                    description will be applied to all users for whose language
                    there is no dedicated short description.'
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getMyShortDescription:
    post:
      description:
        'Use this method to get the current bot short description for the given
        user language. Returns
        [BotShortDescription](https://core.telegram.org/bots/api/#botshortdescription)
        on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getmyshortdescription'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          multipart/form-data:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
          application/json:
            schema:
              type: object
              properties:
                language_code:
                  description:
                    A two-letter ISO 639-1 language code or an empty string
                  type: string
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/BotShortDescription'
                required:
                  - ok
                  - result
  /setChatMenuButton:
    post:
      description:
        "Use this method to change the bot's menu button in a private chat, or
        the default menu button. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setchatmenubutton'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    "Unique identifier for the target private chat. If not
                    specified, default bot's menu button will be changed"
                  type: integer
                menu_button:
                  $ref: '#/components/schemas/MenuButton'
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    "Unique identifier for the target private chat. If not
                    specified, default bot's menu button will be changed"
                  type: integer
                menu_button:
                  $ref: '#/components/schemas/MenuButton'
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    "Unique identifier for the target private chat. If not
                    specified, default bot's menu button will be changed"
                  type: integer
                menu_button:
                  $ref: '#/components/schemas/MenuButton'
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getChatMenuButton:
    post:
      description:
        "Use this method to get the current value of the bot's menu button in a
        private chat, or the default menu button. Returns
        [MenuButton](https://core.telegram.org/bots/api/#menubutton) on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getchatmenubutton'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    "Unique identifier for the target private chat. If not
                    specified, default bot's menu button will be returned"
                  type: integer
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    "Unique identifier for the target private chat. If not
                    specified, default bot's menu button will be returned"
                  type: integer
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    "Unique identifier for the target private chat. If not
                    specified, default bot's menu button will be returned"
                  type: integer
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/MenuButton'
                required:
                  - ok
                  - result
  /setMyDefaultAdministratorRights:
    post:
      description:
        "Use this method to change the default administrator rights requested by
        the bot when it's added as an administrator to groups or channels. These
        rights will be suggested to users, but they are free to modify the list
        before adding the bot. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setmydefaultadministratorrights'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                rights:
                  $ref: '#/components/schemas/ChatAdministratorRights'
                for_channels:
                  description:
                    'Pass *True* to change the default administrator rights of
                    the bot in channels. Otherwise, the default administrator
                    rights of the bot for groups and supergroups will be
                    changed.'
                  type: boolean
          multipart/form-data:
            schema:
              type: object
              properties:
                rights:
                  $ref: '#/components/schemas/ChatAdministratorRights'
                for_channels:
                  description:
                    'Pass *True* to change the default administrator rights of
                    the bot in channels. Otherwise, the default administrator
                    rights of the bot for groups and supergroups will be
                    changed.'
                  type: boolean
          application/json:
            schema:
              type: object
              properties:
                rights:
                  $ref: '#/components/schemas/ChatAdministratorRights'
                for_channels:
                  description:
                    'Pass *True* to change the default administrator rights of
                    the bot in channels. Otherwise, the default administrator
                    rights of the bot for groups and supergroups will be
                    changed.'
                  type: boolean
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getMyDefaultAdministratorRights:
    post:
      description:
        'Use this method to get the current default administrator rights of the
        bot. Returns
        [ChatAdministratorRights](https://core.telegram.org/bots/api/#chatadministratorrights)
        on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getmydefaultadministratorrights'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                for_channels:
                  description:
                    'Pass *True* to get default administrator rights of the bot
                    in channels. Otherwise, default administrator rights of the
                    bot for groups and supergroups will be returned.'
                  type: boolean
          multipart/form-data:
            schema:
              type: object
              properties:
                for_channels:
                  description:
                    'Pass *True* to get default administrator rights of the bot
                    in channels. Otherwise, default administrator rights of the
                    bot for groups and supergroups will be returned.'
                  type: boolean
          application/json:
            schema:
              type: object
              properties:
                for_channels:
                  description:
                    'Pass *True* to get default administrator rights of the bot
                    in channels. Otherwise, default administrator rights of the
                    bot for groups and supergroups will be returned.'
                  type: boolean
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/ChatAdministratorRights'
                required:
                  - ok
                  - result
  /editMessageText:
    post:
      description:
        'Use this method to edit text and
        [game](https://core.telegram.org/bots/api/#games) messages. On success,
        if the edited message is not an inline message, the edited
        [Message](https://core.telegram.org/bots/api/#message) is returned,
        otherwise *True* is returned. Note that business messages that were not
        sent by the bot and do not contain an inline keyboard can only be edited
        within **48 hours** from the time they were sent.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editmessagetext'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                text:
                  description:
                    'New text of the message, 1-4096 characters after entities
                    parsing'
                  type: string
                  minLength: 1
                  maxLength: 4096
                parse_mode:
                  description:
                    'Mode for parsing entities in the message text. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    message text, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                link_preview_options:
                  $ref: '#/components/schemas/LinkPreviewOptions'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - text
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                text:
                  description:
                    'New text of the message, 1-4096 characters after entities
                    parsing'
                  type: string
                  minLength: 1
                  maxLength: 4096
                parse_mode:
                  description:
                    'Mode for parsing entities in the message text. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    message text, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                link_preview_options:
                  $ref: '#/components/schemas/LinkPreviewOptions'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - text
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                text:
                  description:
                    'New text of the message, 1-4096 characters after entities
                    parsing'
                  type: string
                  minLength: 1
                  maxLength: 4096
                parse_mode:
                  description:
                    'Mode for parsing entities in the message text. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    message text, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                link_preview_options:
                  $ref: '#/components/schemas/LinkPreviewOptions'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - text
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/Message'
                      - default: true
                        type: boolean
                required:
                  - ok
                  - result
  /editMessageCaption:
    post:
      description:
        'Use this method to edit captions of messages. On success, if the edited
        message is not an inline message, the edited
        [Message](https://core.telegram.org/bots/api/#message) is returned,
        otherwise *True* is returned. Note that business messages that were not
        sent by the bot and do not contain an inline keyboard can only be edited
        within **48 hours** from the time they were sent.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editmessagecaption'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                caption:
                  description:
                    'New caption of the message, 0-1024 characters after
                    entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the message caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    'Pass *True*, if the caption must be shown above the message
                    media. Supported only for animation, photo and video
                    messages.'
                  type: boolean
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                caption:
                  description:
                    'New caption of the message, 0-1024 characters after
                    entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the message caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    'Pass *True*, if the caption must be shown above the message
                    media. Supported only for animation, photo and video
                    messages.'
                  type: boolean
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                caption:
                  description:
                    'New caption of the message, 0-1024 characters after
                    entities parsing'
                  type: string
                  minLength: 0
                  maxLength: 1024
                parse_mode:
                  description:
                    'Mode for parsing entities in the message caption. See
                    [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details.'
                  type: string
                caption_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the caption, which can be specified instead of
                    *parse\\_mode*"
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
                show_caption_above_media:
                  description:
                    'Pass *True*, if the caption must be shown above the message
                    media. Supported only for animation, photo and video
                    messages.'
                  type: boolean
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/Message'
                      - default: true
                        type: boolean
                required:
                  - ok
                  - result
  /editMessageMedia:
    post:
      description:
        "Use this method to edit animation, audio, document, photo, or video
        messages, or to add media to text messages. If a message is part of a
        message album, then it can be edited only to an audio for audio albums,
        only to a document for document albums and to a photo or a video
        otherwise. When an inline message is edited, a new file can't be
        uploaded; use a previously uploaded file via its file\\_id or specify a
        URL. On success, if the edited message is not an inline message, the
        edited [Message](https://core.telegram.org/bots/api/#message) is
        returned, otherwise *True* is returned. Note that business messages that
        were not sent by the bot and do not contain an inline keyboard can only
        be edited within **48 hours** from the time they were sent."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editmessagemedia'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                media:
                  $ref: '#/components/schemas/InputMedia'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - media
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/Message'
                      - default: true
                        type: boolean
                required:
                  - ok
                  - result
  /editMessageLiveLocation:
    post:
      description:
        "Use this method to edit live location messages. A location can be
        edited until its *live\\_period* expires or editing is explicitly
        disabled by a call to
        [stopMessageLiveLocation](https://core.telegram.org/bots/api/#stopmessagelivelocation).
        On success, if the edited message is not an inline message, the edited
        [Message](https://core.telegram.org/bots/api/#message) is returned,
        otherwise *True* is returned."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editmessagelivelocation'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                latitude:
                  description: Latitude of new location
                  type: number
                longitude:
                  description: Longitude of new location
                  type: number
                live_period:
                  description:
                    "New period in seconds during which the location can be
                    updated, starting from the message send date. If 0x7FFFFFFF
                    is specified, then the location can be updated forever.
                    Otherwise, the new value must not exceed the current
                    *live\\_period* by more than a day, and the live location
                    expiration date must remain within the next 90 days. If not
                    specified, then *live\\_period* remains unchanged"
                  type: integer
                horizontal_accuracy:
                  description:
                    'The radius of uncertainty for the location, measured in
                    meters; 0-1500'
                  type: number
                heading:
                  description:
                    'Direction in which the user is moving, in degrees. Must be
                    between 1 and 360 if specified.'
                  type: integer
                proximity_alert_radius:
                  description:
                    'The maximum distance for proximity alerts about approaching
                    another chat member, in meters. Must be between 1 and 100000
                    if specified.'
                  type: integer
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - latitude
                - longitude
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                latitude:
                  description: Latitude of new location
                  type: number
                longitude:
                  description: Longitude of new location
                  type: number
                live_period:
                  description:
                    "New period in seconds during which the location can be
                    updated, starting from the message send date. If 0x7FFFFFFF
                    is specified, then the location can be updated forever.
                    Otherwise, the new value must not exceed the current
                    *live\\_period* by more than a day, and the live location
                    expiration date must remain within the next 90 days. If not
                    specified, then *live\\_period* remains unchanged"
                  type: integer
                horizontal_accuracy:
                  description:
                    'The radius of uncertainty for the location, measured in
                    meters; 0-1500'
                  type: number
                heading:
                  description:
                    'Direction in which the user is moving, in degrees. Must be
                    between 1 and 360 if specified.'
                  type: integer
                proximity_alert_radius:
                  description:
                    'The maximum distance for proximity alerts about approaching
                    another chat member, in meters. Must be between 1 and 100000
                    if specified.'
                  type: integer
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - latitude
                - longitude
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                latitude:
                  description: Latitude of new location
                  type: number
                longitude:
                  description: Longitude of new location
                  type: number
                live_period:
                  description:
                    "New period in seconds during which the location can be
                    updated, starting from the message send date. If 0x7FFFFFFF
                    is specified, then the location can be updated forever.
                    Otherwise, the new value must not exceed the current
                    *live\\_period* by more than a day, and the live location
                    expiration date must remain within the next 90 days. If not
                    specified, then *live\\_period* remains unchanged"
                  type: integer
                horizontal_accuracy:
                  description:
                    'The radius of uncertainty for the location, measured in
                    meters; 0-1500'
                  type: number
                heading:
                  description:
                    'Direction in which the user is moving, in degrees. Must be
                    between 1 and 360 if specified.'
                  type: integer
                proximity_alert_radius:
                  description:
                    'The maximum distance for proximity alerts about approaching
                    another chat member, in meters. Must be between 1 and 100000
                    if specified.'
                  type: integer
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - latitude
                - longitude
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/Message'
                      - default: true
                        type: boolean
                required:
                  - ok
                  - result
  /stopMessageLiveLocation:
    post:
      description:
        "Use this method to stop updating a live location message before
        *live\\_period* expires. On success, if the message is not an inline
        message, the edited
        [Message](https://core.telegram.org/bots/api/#message) is returned,
        otherwise *True* is returned."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#stopmessagelivelocation'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message with live location to stop"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message with live location to stop"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message with live location to stop"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/Message'
                      - default: true
                        type: boolean
                required:
                  - ok
                  - result
  /editMessageReplyMarkup:
    post:
      description:
        'Use this method to edit only the reply markup of messages. On success,
        if the edited message is not an inline message, the edited
        [Message](https://core.telegram.org/bots/api/#message) is returned,
        otherwise *True* is returned. Note that business messages that were not
        sent by the bot and do not contain an inline keyboard can only be edited
        within **48 hours** from the time they were sent.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#editmessagereplymarkup'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)"
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the message to edit"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/Message'
                      - default: true
                        type: boolean
                required:
                  - ok
                  - result
  /stopPoll:
    post:
      description:
        'Use this method to stop a poll which was sent by the bot. On success,
        the stopped [Poll](https://core.telegram.org/bots/api/#poll) is
        returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#stoppoll'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of the original message with the poll
                  type: integer
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - message_id
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of the original message with the poll
                  type: integer
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - message_id
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message to be edited was sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of the original message with the poll
                  type: integer
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - message_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Poll'
                required:
                  - ok
                  - result
  /deleteMessage:
    post:
      description:
        "Use this method to delete a message, including service messages, with
        the following limitations:  \n\\- A message can only be deleted if it
        was sent less than 48 hours ago.  \n\\- Service messages about a
        supergroup, channel, or forum topic creation can't be deleted.  \n\\- A
        dice message in a private chat can only be deleted if it was sent more
        than 24 hours ago.  \n\\- Bots can delete outgoing messages in private
        chats, groups, and supergroups.  \n\\- Bots can delete incoming messages
        in private chats.  \n\\- Bots granted *can\\_post\\_messages*
        permissions can delete outgoing messages in channels.  \n\\- If the bot
        is an administrator of a group, it can delete any message there.  \n\\-
        If the bot has *can\\_delete\\_messages* permission in a supergroup or a
        channel, it can delete any message there.  \nReturns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletemessage'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of the message to delete
                  type: integer
              required:
                - chat_id
                - message_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of the message to delete
                  type: integer
              required:
                - chat_id
                - message_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_id:
                  description: Identifier of the message to delete
                  type: integer
              required:
                - chat_id
                - message_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteMessages:
    post:
      description:
        "Use this method to delete multiple messages simultaneously. If some of
        the specified messages can't be found, they are skipped. Returns *True*
        on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletemessages'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    'A JSON-serialized list of 1-100 identifiers of messages to
                    delete. See
                    [deleteMessage](https://core.telegram.org/bots/api/#deletemessage)
                    for limitations on which messages can be deleted'
                  type: array
                  items:
                    type: integer
              required:
                - chat_id
                - message_ids
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    'A JSON-serialized list of 1-100 identifiers of messages to
                    delete. See
                    [deleteMessage](https://core.telegram.org/bots/api/#deletemessage)
                    for limitations on which messages can be deleted'
                  type: array
                  items:
                    type: integer
              required:
                - chat_id
                - message_ids
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_ids:
                  description:
                    'A JSON-serialized list of 1-100 identifiers of messages to
                    delete. See
                    [deleteMessage](https://core.telegram.org/bots/api/#deletemessage)
                    for limitations on which messages can be deleted'
                  type: array
                  items:
                    type: integer
              required:
                - chat_id
                - message_ids
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /sendSticker:
    post:
      description:
        'Use this method to send static .WEBP,
        [animated](https://telegram.org/blog/animated-stickers) .TGS, or
        [video](https://telegram.org/blog/video-stickers-better-reactions) .WEBM
        stickers. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendsticker'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                sticker:
                  description:
                    "Sticker to send. Pass a file\\_id as String to send a file
                    that exists on the Telegram servers (recommended), pass an
                    HTTP URL as a String for Telegram to get a .WEBP sticker
                    from the Internet, or upload a new .WEBP, .TGS, or .WEBM
                    sticker using multipart/form-data. [More information on
                    Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files). Video
                    and animated stickers can't be sent via an HTTP URL."
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                emoji:
                  description:
                    Emoji associated with the sticker; only for just uploaded
                    stickers
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  description:
                    'Additional interface options. A JSON-serialized object for
                    an [inline
                    keyboard](https://core.telegram.org/bots/features#inline-keyboards),
                    [custom reply
                    keyboard](https://core.telegram.org/bots/features#keyboards),
                    instructions to remove a reply keyboard or to force a reply
                    from the user'
                  anyOf:
                    - $ref: '#/components/schemas/InlineKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardMarkup'
                    - $ref: '#/components/schemas/ReplyKeyboardRemove'
                    - $ref: '#/components/schemas/ForceReply'
              required:
                - chat_id
                - sticker
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /getStickerSet:
    post:
      description:
        'Use this method to get a sticker set. On success, a
        [StickerSet](https://core.telegram.org/bots/api/#stickerset) object is
        returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getstickerset'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                name:
                  description: Name of the sticker set
                  type: string
              required:
                - name
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  description: Name of the sticker set
                  type: string
              required:
                - name
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: Name of the sticker set
                  type: string
              required:
                - name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/StickerSet'
                required:
                  - ok
                  - result
  /getCustomEmojiStickers:
    post:
      description:
        'Use this method to get information about custom emoji stickers by their
        identifiers. Returns an Array of
        [Sticker](https://core.telegram.org/bots/api/#sticker) objects.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getcustomemojistickers'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                custom_emoji_ids:
                  description:
                    A JSON-serialized list of custom emoji identifiers. At most
                    200 custom emoji identifiers can be specified.
                  type: array
                  items:
                    type: string
              required:
                - custom_emoji_ids
          multipart/form-data:
            schema:
              type: object
              properties:
                custom_emoji_ids:
                  description:
                    A JSON-serialized list of custom emoji identifiers. At most
                    200 custom emoji identifiers can be specified.
                  type: array
                  items:
                    type: string
              required:
                - custom_emoji_ids
          application/json:
            schema:
              type: object
              properties:
                custom_emoji_ids:
                  description:
                    A JSON-serialized list of custom emoji identifiers. At most
                    200 custom emoji identifiers can be specified.
                  type: array
                  items:
                    type: string
              required:
                - custom_emoji_ids
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/Sticker'
                required:
                  - ok
                  - result
  /uploadStickerFile:
    post:
      description:
        'Use this method to upload a file with a sticker for later use in the
        [createNewStickerSet](https://core.telegram.org/bots/api/#createnewstickerset),
        [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset),
        or
        [replaceStickerInSet](https://core.telegram.org/bots/api/#replacestickerinset)
        methods (the file can be used multiple times). Returns the uploaded
        [File](https://core.telegram.org/bots/api/#file) on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#uploadstickerfile'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier of sticker file owner
                  type: integer
                sticker:
                  $ref: '#/components/schemas/InputFile'
                sticker_format:
                  description:
                    'Format of the sticker, must be one of “static”, “animated”,
                    “video”'
                  type: string
                  enum:
                    - static
                    - animated
                    - video
              required:
                - user_id
                - sticker
                - sticker_format
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/File'
                required:
                  - ok
                  - result
  /createNewStickerSet:
    post:
      description:
        Use this method to create a new sticker set owned by a user. The bot
        will be able to edit the sticker set thus created. Returns *True* on
        success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#createnewstickerset'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier of created sticker set owner
                  type: integer
                name:
                  description:
                    'Short name of sticker set, to be used in
                    `t.me/addstickers/` URLs (e.g., *animals*). Can contain only
                    English letters, digits and underscores. Must begin with a
                    letter, can''t contain consecutive underscores and must end
                    in `"_by_<bot_username>"`. `<bot_username>` is case
                    insensitive. 1-64 characters.'
                  type: string
                  minLength: 1
                  maxLength: 64
                title:
                  description: 'Sticker set title, 1-64 characters'
                  type: string
                  minLength: 1
                  maxLength: 64
                stickers:
                  description:
                    A JSON-serialized list of 1-50 initial stickers to be added
                    to the sticker set
                  type: array
                  items:
                    $ref: '#/components/schemas/InputSticker'
                sticker_type:
                  description:
                    "Type of stickers in the set, pass “regular”, “mask”, or
                    “custom\\_emoji”. By default, a regular sticker set is
                    created."
                  type: string
                  enum:
                    - mask
                    - custom_emoji
                needs_repainting:
                  description:
                    'Pass *True* if stickers in the sticker set must be
                    repainted to the color of text when used in messages, the
                    accent color if used as emoji status, white on chat photos,
                    or another appropriate color based on context; for custom
                    emoji sticker sets only'
                  type: boolean
              required:
                - user_id
                - name
                - title
                - stickers
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /addStickerToSet:
    post:
      description:
        Use this method to add a new sticker to a set created by the bot. Emoji
        sticker sets can have up to 200 stickers. Other sticker sets can have up
        to 120 stickers. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#addstickertoset'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier of sticker set owner
                  type: integer
                name:
                  description: Sticker set name
                  type: string
                sticker:
                  $ref: '#/components/schemas/InputSticker'
              required:
                - user_id
                - name
                - sticker
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setStickerPositionInSet:
    post:
      description:
        Use this method to move a sticker in a set created by the bot to a
        specific position. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setstickerpositioninset'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                position:
                  description: 'New sticker position in the set, zero-based'
                  type: integer
              required:
                - sticker
                - position
          multipart/form-data:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                position:
                  description: 'New sticker position in the set, zero-based'
                  type: integer
              required:
                - sticker
                - position
          application/json:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                position:
                  description: 'New sticker position in the set, zero-based'
                  type: integer
              required:
                - sticker
                - position
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteStickerFromSet:
    post:
      description:
        Use this method to delete a sticker from a set created by the bot.
        Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletestickerfromset'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
              required:
                - sticker
          multipart/form-data:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
              required:
                - sticker
          application/json:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
              required:
                - sticker
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /replaceStickerInSet:
    post:
      description:
        'Use this method to replace an existing sticker in a sticker set with a
        new one. The method is equivalent to calling
        [deleteStickerFromSet](https://core.telegram.org/bots/api/#deletestickerfromset),
        then
        [addStickerToSet](https://core.telegram.org/bots/api/#addstickertoset),
        then
        [setStickerPositionInSet](https://core.telegram.org/bots/api/#setstickerpositioninset).
        Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#replacestickerinset'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier of the sticker set owner
                  type: integer
                name:
                  description: Sticker set name
                  type: string
                old_sticker:
                  description: File identifier of the replaced sticker
                  type: string
                sticker:
                  $ref: '#/components/schemas/InputSticker'
              required:
                - user_id
                - name
                - old_sticker
                - sticker
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setStickerEmojiList:
    post:
      description:
        Use this method to change the list of emoji assigned to a regular or
        custom emoji sticker. The sticker must belong to a sticker set created
        by the bot. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setstickeremojilist'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                emoji_list:
                  description:
                    A JSON-serialized list of 1-20 emoji associated with the
                    sticker
                  type: array
                  items:
                    type: string
              required:
                - sticker
                - emoji_list
          multipart/form-data:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                emoji_list:
                  description:
                    A JSON-serialized list of 1-20 emoji associated with the
                    sticker
                  type: array
                  items:
                    type: string
              required:
                - sticker
                - emoji_list
          application/json:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                emoji_list:
                  description:
                    A JSON-serialized list of 1-20 emoji associated with the
                    sticker
                  type: array
                  items:
                    type: string
              required:
                - sticker
                - emoji_list
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setStickerKeywords:
    post:
      description:
        Use this method to change search keywords assigned to a regular or
        custom emoji sticker. The sticker must belong to a sticker set created
        by the bot. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setstickerkeywords'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                keywords:
                  description:
                    A JSON-serialized list of 0-20 search keywords for the
                    sticker with total length of up to 64 characters
                  type: array
                  items:
                    type: string
              required:
                - sticker
          multipart/form-data:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                keywords:
                  description:
                    A JSON-serialized list of 0-20 search keywords for the
                    sticker with total length of up to 64 characters
                  type: array
                  items:
                    type: string
              required:
                - sticker
          application/json:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                keywords:
                  description:
                    A JSON-serialized list of 0-20 search keywords for the
                    sticker with total length of up to 64 characters
                  type: array
                  items:
                    type: string
              required:
                - sticker
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setStickerMaskPosition:
    post:
      description:
        'Use this method to change the [mask
        position](https://core.telegram.org/bots/api/#maskposition) of a mask
        sticker. The sticker must belong to a sticker set that was created by
        the bot. Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setstickermaskposition'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                mask_position:
                  $ref: '#/components/schemas/MaskPosition'
              required:
                - sticker
          multipart/form-data:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                mask_position:
                  $ref: '#/components/schemas/MaskPosition'
              required:
                - sticker
          application/json:
            schema:
              type: object
              properties:
                sticker:
                  description: File identifier of the sticker
                  type: string
                mask_position:
                  $ref: '#/components/schemas/MaskPosition'
              required:
                - sticker
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setStickerSetTitle:
    post:
      description:
        Use this method to set the title of a created sticker set. Returns
        *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setstickersettitle'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
                title:
                  description: 'Sticker set title, 1-64 characters'
                  type: string
                  minLength: 1
                  maxLength: 64
              required:
                - name
                - title
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
                title:
                  description: 'Sticker set title, 1-64 characters'
                  type: string
                  minLength: 1
                  maxLength: 64
              required:
                - name
                - title
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
                title:
                  description: 'Sticker set title, 1-64 characters'
                  type: string
                  minLength: 1
                  maxLength: 64
              required:
                - name
                - title
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setStickerSetThumbnail:
    post:
      description:
        Use this method to set the thumbnail of a regular or mask sticker set.
        The format of the thumbnail file must match the format of the stickers
        in the set. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setstickersetthumbnail'
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
                user_id:
                  description: User identifier of the sticker set owner
                  type: integer
                thumbnail:
                  description:
                    "A **.WEBP** or **.PNG** image with the thumbnail, must be
                    up to 128 kilobytes in size and have a width and height of
                    exactly 100px, or a **.TGS** animation with a thumbnail up
                    to 32 kilobytes in size (see
                    [https://core.telegram.org/stickers#animation-requirements](https://core.telegram.org/stickers#animation-requirements)
                    for animated sticker technical requirements), or a **.WEBM**
                    video with the thumbnail up to 32 kilobytes in size; see
                    [https://core.telegram.org/stickers#video-requirements](https://core.telegram.org/stickers#video-requirements)
                    for video sticker technical requirements. Pass a *file\\_id*
                    as a String to send a file that already exists on the
                    Telegram servers, pass an HTTP URL as a String for Telegram
                    to get a file from the Internet, or upload a new one using
                    multipart/form-data. [More information on Sending Files
                    »](https://core.telegram.org/bots/api/#sending-files).
                    Animated and video sticker set thumbnails can't be uploaded
                    via HTTP URL. If omitted, then the thumbnail is dropped and
                    the first sticker is used as the thumbnail."
                  anyOf:
                    - $ref: '#/components/schemas/InputFile'
                    - type: string
                format:
                  description:
                    'Format of the thumbnail, must be one of “static” for a
                    **.WEBP** or **.PNG** image, “animated” for a **.TGS**
                    animation, or “video” for a **.WEBM** video'
                  type: string
                  enum:
                    - static
                    - animated
                    - video
              required:
                - name
                - user_id
                - format
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setCustomEmojiStickerSetThumbnail:
    post:
      description:
        Use this method to set the thumbnail of a custom emoji sticker set.
        Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setcustomemojistickersetthumbnail'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
                custom_emoji_id:
                  description:
                    Custom emoji identifier of a sticker from the sticker set;
                    pass an empty string to drop the thumbnail and use the first
                    sticker as the thumbnail.
                  type: string
              required:
                - name
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
                custom_emoji_id:
                  description:
                    Custom emoji identifier of a sticker from the sticker set;
                    pass an empty string to drop the thumbnail and use the first
                    sticker as the thumbnail.
                  type: string
              required:
                - name
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
                custom_emoji_id:
                  description:
                    Custom emoji identifier of a sticker from the sticker set;
                    pass an empty string to drop the thumbnail and use the first
                    sticker as the thumbnail.
                  type: string
              required:
                - name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /deleteStickerSet:
    post:
      description:
        Use this method to delete a sticker set that was created by the bot.
        Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#deletestickerset'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
              required:
                - name
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
              required:
                - name
          application/json:
            schema:
              type: object
              properties:
                name:
                  description: Sticker set name
                  type: string
              required:
                - name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getAvailableGifts:
    post:
      description:
        'Returns the list of gifts that can be sent by the bot to users and
        channel chats. Requires no parameters. Returns a
        [Gifts](https://core.telegram.org/bots/api/#gifts) object.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getavailablegifts'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Gifts'
                required:
                  - ok
                  - result
  /sendGift:
    post:
      description:
        "Sends a gift to the given user or channel chat. The gift can't be
        converted to Telegram Stars by the receiver. Returns *True* on success."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendgift'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    "Required if *chat\\_id* is not specified. Unique identifier
                    of the target user who will receive the gift."
                  type: integer
                chat_id:
                  description:
                    "Required if *user\\_id* is not specified. Unique identifier
                    for the chat or username of the channel (in the format
                    `@channelusername`) that will receive the gift."
                  anyOf:
                    - type: integer
                    - type: string
                gift_id:
                  description: Identifier of the gift
                  type: string
                pay_for_upgrade:
                  description:
                    "Pass *True* to pay for the gift upgrade from the bot's
                    balance, thereby making the upgrade free for the receiver"
                  type: boolean
                text:
                  description:
                    Text that will be shown along with the gift; 0-128
                    characters
                  type: string
                  minLength: 0
                  maxLength: 128
                text_parse_mode:
                  description:
                    "Mode for parsing entities in the text. See [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details. Entities other than “bold”, “italic”,
                    “underline”, “strikethrough”, “spoiler”, and
                    “custom\\_emoji” are ignored."
                  type: string
                text_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the gift text. It can be specified instead of
                    *text\\_parse\\_mode*. Entities other than “bold”, “italic”,
                    “underline”, “strikethrough”, “spoiler”, and
                    “custom\\_emoji” are ignored."
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
              required:
                - gift_id
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    "Required if *chat\\_id* is not specified. Unique identifier
                    of the target user who will receive the gift."
                  type: integer
                chat_id:
                  description:
                    "Required if *user\\_id* is not specified. Unique identifier
                    for the chat or username of the channel (in the format
                    `@channelusername`) that will receive the gift."
                  anyOf:
                    - type: integer
                    - type: string
                gift_id:
                  description: Identifier of the gift
                  type: string
                pay_for_upgrade:
                  description:
                    "Pass *True* to pay for the gift upgrade from the bot's
                    balance, thereby making the upgrade free for the receiver"
                  type: boolean
                text:
                  description:
                    Text that will be shown along with the gift; 0-128
                    characters
                  type: string
                  minLength: 0
                  maxLength: 128
                text_parse_mode:
                  description:
                    "Mode for parsing entities in the text. See [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details. Entities other than “bold”, “italic”,
                    “underline”, “strikethrough”, “spoiler”, and
                    “custom\\_emoji” are ignored."
                  type: string
                text_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the gift text. It can be specified instead of
                    *text\\_parse\\_mode*. Entities other than “bold”, “italic”,
                    “underline”, “strikethrough”, “spoiler”, and
                    “custom\\_emoji” are ignored."
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
              required:
                - gift_id
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    "Required if *chat\\_id* is not specified. Unique identifier
                    of the target user who will receive the gift."
                  type: integer
                chat_id:
                  description:
                    "Required if *user\\_id* is not specified. Unique identifier
                    for the chat or username of the channel (in the format
                    `@channelusername`) that will receive the gift."
                  anyOf:
                    - type: integer
                    - type: string
                gift_id:
                  description: Identifier of the gift
                  type: string
                pay_for_upgrade:
                  description:
                    "Pass *True* to pay for the gift upgrade from the bot's
                    balance, thereby making the upgrade free for the receiver"
                  type: boolean
                text:
                  description:
                    Text that will be shown along with the gift; 0-128
                    characters
                  type: string
                  minLength: 0
                  maxLength: 128
                text_parse_mode:
                  description:
                    "Mode for parsing entities in the text. See [formatting
                    options](https://core.telegram.org/bots/api/#formatting-options)
                    for more details. Entities other than “bold”, “italic”,
                    “underline”, “strikethrough”, “spoiler”, and
                    “custom\\_emoji” are ignored."
                  type: string
                text_entities:
                  description:
                    "A JSON-serialized list of special entities that appear in
                    the gift text. It can be specified instead of
                    *text\\_parse\\_mode*. Entities other than “bold”, “italic”,
                    “underline”, “strikethrough”, “spoiler”, and
                    “custom\\_emoji” are ignored."
                  type: array
                  items:
                    $ref: '#/components/schemas/MessageEntity'
              required:
                - gift_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /verifyUser:
    post:
      description:
        'Verifies a user [on behalf of the
        organization](https://telegram.org/verify#third-party-verification)
        which is represented by the bot. Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#verifyuser'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                custom_description:
                  description:
                    "Custom description for the verification; 0-70 characters.
                    Must be empty if the organization isn't allowed to provide a
                    custom verification description."
                  type: string
                  minLength: 0
                  maxLength: 70
              required:
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                custom_description:
                  description:
                    "Custom description for the verification; 0-70 characters.
                    Must be empty if the organization isn't allowed to provide a
                    custom verification description."
                  type: string
                  minLength: 0
                  maxLength: 70
              required:
                - user_id
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
                custom_description:
                  description:
                    "Custom description for the verification; 0-70 characters.
                    Must be empty if the organization isn't allowed to provide a
                    custom verification description."
                  type: string
                  minLength: 0
                  maxLength: 70
              required:
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /verifyChat:
    post:
      description:
        'Verifies a chat [on behalf of the
        organization](https://telegram.org/verify#third-party-verification)
        which is represented by the bot. Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#verifychat'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                custom_description:
                  description:
                    "Custom description for the verification; 0-70 characters.
                    Must be empty if the organization isn't allowed to provide a
                    custom verification description."
                  type: string
                  minLength: 0
                  maxLength: 70
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                custom_description:
                  description:
                    "Custom description for the verification; 0-70 characters.
                    Must be empty if the organization isn't allowed to provide a
                    custom verification description."
                  type: string
                  minLength: 0
                  maxLength: 70
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                custom_description:
                  description:
                    "Custom description for the verification; 0-70 characters.
                    Must be empty if the organization isn't allowed to provide a
                    custom verification description."
                  type: string
                  minLength: 0
                  maxLength: 70
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /removeUserVerification:
    post:
      description:
        'Removes verification from a user who is currently verified [on behalf
        of the
        organization](https://telegram.org/verify#third-party-verification)
        represented by the bot. Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#removeuserverification'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - user_id
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: Unique identifier of the target user
                  type: integer
              required:
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /removeChatVerification:
    post:
      description:
        'Removes verification from a chat that is currently verified [on behalf
        of the
        organization](https://telegram.org/verify#third-party-verification)
        represented by the bot. Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#removechatverification'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
              required:
                - chat_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /answerInlineQuery:
    post:
      description:
        "Use this method to send answers to an inline query. On success, *True*
        is returned.  \nNo more than **50** results per query are allowed."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#answerinlinequery'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                inline_query_id:
                  description: Unique identifier for the answered query
                  type: string
                results:
                  description:
                    A JSON-serialized array of results for the inline query
                  type: array
                  items:
                    $ref: '#/components/schemas/InlineQueryResult'
                cache_time:
                  description:
                    The maximum amount of time in seconds that the result of the
                    inline query may be cached on the server. Defaults to 300.
                  default: 300
                  type: integer
                is_personal:
                  description:
                    'Pass *True* if results may be cached on the server side
                    only for the user that sent the query. By default, results
                    may be returned to any user who sends the same query.'
                  type: boolean
                next_offset:
                  description:
                    "Pass the offset that a client should send in the next query
                    with the same text to receive more results. Pass an empty
                    string if there are no more results or if you don't support
                    pagination. Offset length can't exceed 64 bytes."
                  type: string
                button:
                  $ref: '#/components/schemas/InlineQueryResultsButton'
              required:
                - inline_query_id
                - results
          multipart/form-data:
            schema:
              type: object
              properties:
                inline_query_id:
                  description: Unique identifier for the answered query
                  type: string
                results:
                  description:
                    A JSON-serialized array of results for the inline query
                  type: array
                  items:
                    $ref: '#/components/schemas/InlineQueryResult'
                cache_time:
                  description:
                    The maximum amount of time in seconds that the result of the
                    inline query may be cached on the server. Defaults to 300.
                  default: 300
                  type: integer
                is_personal:
                  description:
                    'Pass *True* if results may be cached on the server side
                    only for the user that sent the query. By default, results
                    may be returned to any user who sends the same query.'
                  type: boolean
                next_offset:
                  description:
                    "Pass the offset that a client should send in the next query
                    with the same text to receive more results. Pass an empty
                    string if there are no more results or if you don't support
                    pagination. Offset length can't exceed 64 bytes."
                  type: string
                button:
                  $ref: '#/components/schemas/InlineQueryResultsButton'
              required:
                - inline_query_id
                - results
          application/json:
            schema:
              type: object
              properties:
                inline_query_id:
                  description: Unique identifier for the answered query
                  type: string
                results:
                  description:
                    A JSON-serialized array of results for the inline query
                  type: array
                  items:
                    $ref: '#/components/schemas/InlineQueryResult'
                cache_time:
                  description:
                    The maximum amount of time in seconds that the result of the
                    inline query may be cached on the server. Defaults to 300.
                  default: 300
                  type: integer
                is_personal:
                  description:
                    'Pass *True* if results may be cached on the server side
                    only for the user that sent the query. By default, results
                    may be returned to any user who sends the same query.'
                  type: boolean
                next_offset:
                  description:
                    "Pass the offset that a client should send in the next query
                    with the same text to receive more results. Pass an empty
                    string if there are no more results or if you don't support
                    pagination. Offset length can't exceed 64 bytes."
                  type: string
                button:
                  $ref: '#/components/schemas/InlineQueryResultsButton'
              required:
                - inline_query_id
                - results
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /answerWebAppQuery:
    post:
      description:
        'Use this method to set the result of an interaction with a [Web
        App](https://core.telegram.org/bots/webapps) and send a corresponding
        message on behalf of the user to the chat from which the query
        originated. On success, a
        [SentWebAppMessage](https://core.telegram.org/bots/api/#sentwebappmessage)
        object is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#answerwebappquery'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                web_app_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                result:
                  $ref: '#/components/schemas/InlineQueryResult'
              required:
                - web_app_query_id
                - result
          multipart/form-data:
            schema:
              type: object
              properties:
                web_app_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                result:
                  $ref: '#/components/schemas/InlineQueryResult'
              required:
                - web_app_query_id
                - result
          application/json:
            schema:
              type: object
              properties:
                web_app_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                result:
                  $ref: '#/components/schemas/InlineQueryResult'
              required:
                - web_app_query_id
                - result
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/SentWebAppMessage'
                required:
                  - ok
                  - result
  /savePreparedInlineMessage:
    post:
      description:
        'Stores a message that can be sent by a user of a Mini App. Returns a
        [PreparedInlineMessage](https://core.telegram.org/bots/api/#preparedinlinemessage)
        object.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#savepreparedinlinemessage'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Unique identifier of the target user that can use the
                    prepared message
                  type: integer
                result:
                  $ref: '#/components/schemas/InlineQueryResult'
                allow_user_chats:
                  description:
                    Pass *True* if the message can be sent to private chats with
                    users
                  type: boolean
                allow_bot_chats:
                  description:
                    Pass *True* if the message can be sent to private chats with
                    bots
                  type: boolean
                allow_group_chats:
                  description:
                    Pass *True* if the message can be sent to group and
                    supergroup chats
                  type: boolean
                allow_channel_chats:
                  description:
                    Pass *True* if the message can be sent to channel chats
                  type: boolean
              required:
                - user_id
                - result
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Unique identifier of the target user that can use the
                    prepared message
                  type: integer
                result:
                  $ref: '#/components/schemas/InlineQueryResult'
                allow_user_chats:
                  description:
                    Pass *True* if the message can be sent to private chats with
                    users
                  type: boolean
                allow_bot_chats:
                  description:
                    Pass *True* if the message can be sent to private chats with
                    bots
                  type: boolean
                allow_group_chats:
                  description:
                    Pass *True* if the message can be sent to group and
                    supergroup chats
                  type: boolean
                allow_channel_chats:
                  description:
                    Pass *True* if the message can be sent to channel chats
                  type: boolean
              required:
                - user_id
                - result
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Unique identifier of the target user that can use the
                    prepared message
                  type: integer
                result:
                  $ref: '#/components/schemas/InlineQueryResult'
                allow_user_chats:
                  description:
                    Pass *True* if the message can be sent to private chats with
                    users
                  type: boolean
                allow_bot_chats:
                  description:
                    Pass *True* if the message can be sent to private chats with
                    bots
                  type: boolean
                allow_group_chats:
                  description:
                    Pass *True* if the message can be sent to group and
                    supergroup chats
                  type: boolean
                allow_channel_chats:
                  description:
                    Pass *True* if the message can be sent to channel chats
                  type: boolean
              required:
                - user_id
                - result
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/PreparedInlineMessage'
                required:
                  - ok
                  - result
  /sendInvoice:
    post:
      description:
        'Use this method to send invoices. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendinvoice'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                title:
                  description: 'Product name, 1-32 characters'
                  type: string
                  minLength: 1
                  maxLength: 32
                description:
                  description: 'Product description, 1-255 characters'
                  type: string
                  minLength: 1
                  maxLength: 255
                payload:
                  description:
                    'Bot-defined invoice payload, 1-128 bytes. This will not be
                    displayed to the user, use it for your internal processes.'
                  type: string
                provider_token:
                  description:
                    'Payment provider token, obtained via
                    [@BotFather](https://t.me/botfather). Pass an empty string
                    for payments in [Telegram Stars](https://t.me/BotNews/90).'
                  type: string
                currency:
                  description:
                    'Three-letter ISO 4217 currency code, see [more on
                    currencies](https://core.telegram.org/bots/payments#supported-currencies).
                    Pass “XTR” for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: string
                prices:
                  description:
                    'Price breakdown, a JSON-serialized list of components (e.g.
                    product price, tax, discount, delivery cost, delivery tax,
                    bonus, etc.). Must contain exactly one item for payments in
                    [Telegram Stars](https://t.me/BotNews/90).'
                  type: array
                  items:
                    $ref: '#/components/schemas/LabeledPrice'
                max_tip_amount:
                  description:
                    'The maximum accepted amount for tips in the *smallest
                    units* of the currency (integer, **not** float/double). For
                    example, for a maximum tip of `US$ 1.45` pass
                    `max_tip_amount = 145`. See the *exp* parameter in
                    [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
                    it shows the number of digits past the decimal point for
                    each currency (2 for the majority of currencies). Defaults
                    to 0. Not supported for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  default: 0
                  type: integer
                suggested_tip_amounts:
                  description:
                    "A JSON-serialized array of suggested amounts of tips in the
                    *smallest units* of the currency (integer, **not**
                    float/double). At most 4 suggested tip amounts can be
                    specified. The suggested tip amounts must be positive,
                    passed in a strictly increased order and must not exceed
                    *max\\_tip\\_amount*."
                  type: array
                  items:
                    type: integer
                start_parameter:
                  description:
                    'Unique deep-linking parameter. If left empty, **forwarded
                    copies** of the sent message will have a *Pay* button,
                    allowing multiple users to pay directly from the forwarded
                    message, using the same invoice. If non-empty, forwarded
                    copies of the sent message will have a *URL* button with a
                    deep link to the bot (instead of a *Pay* button), with the
                    value used as the start parameter'
                  type: string
                provider_data:
                  description:
                    'JSON-serialized data about the invoice, which will be
                    shared with the payment provider. A detailed description of
                    required fields should be provided by the payment provider.'
                  type: string
                photo_url:
                  description:
                    URL of the product photo for the invoice. Can be a photo of
                    the goods or a marketing image for a service. People like it
                    better when they see what they are paying for.
                  type: string
                photo_size:
                  description: Photo size in bytes
                  type: integer
                photo_width:
                  description: Photo width
                  type: integer
                photo_height:
                  description: Photo height
                  type: integer
                need_name:
                  description:
                    "Pass *True* if you require the user's full name to complete
                    the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_phone_number:
                  description:
                    "Pass *True* if you require the user's phone number to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_email:
                  description:
                    "Pass *True* if you require the user's email address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_shipping_address:
                  description:
                    "Pass *True* if you require the user's shipping address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_phone_number_to_provider:
                  description:
                    "Pass *True* if the user's phone number should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_email_to_provider:
                  description:
                    "Pass *True* if the user's email address should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                is_flexible:
                  description:
                    'Pass *True* if the final price depends on the shipping
                    method. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - title
                - description
                - payload
                - currency
                - prices
          multipart/form-data:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                title:
                  description: 'Product name, 1-32 characters'
                  type: string
                  minLength: 1
                  maxLength: 32
                description:
                  description: 'Product description, 1-255 characters'
                  type: string
                  minLength: 1
                  maxLength: 255
                payload:
                  description:
                    'Bot-defined invoice payload, 1-128 bytes. This will not be
                    displayed to the user, use it for your internal processes.'
                  type: string
                provider_token:
                  description:
                    'Payment provider token, obtained via
                    [@BotFather](https://t.me/botfather). Pass an empty string
                    for payments in [Telegram Stars](https://t.me/BotNews/90).'
                  type: string
                currency:
                  description:
                    'Three-letter ISO 4217 currency code, see [more on
                    currencies](https://core.telegram.org/bots/payments#supported-currencies).
                    Pass “XTR” for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: string
                prices:
                  description:
                    'Price breakdown, a JSON-serialized list of components (e.g.
                    product price, tax, discount, delivery cost, delivery tax,
                    bonus, etc.). Must contain exactly one item for payments in
                    [Telegram Stars](https://t.me/BotNews/90).'
                  type: array
                  items:
                    $ref: '#/components/schemas/LabeledPrice'
                max_tip_amount:
                  description:
                    'The maximum accepted amount for tips in the *smallest
                    units* of the currency (integer, **not** float/double). For
                    example, for a maximum tip of `US$ 1.45` pass
                    `max_tip_amount = 145`. See the *exp* parameter in
                    [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
                    it shows the number of digits past the decimal point for
                    each currency (2 for the majority of currencies). Defaults
                    to 0. Not supported for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  default: 0
                  type: integer
                suggested_tip_amounts:
                  description:
                    "A JSON-serialized array of suggested amounts of tips in the
                    *smallest units* of the currency (integer, **not**
                    float/double). At most 4 suggested tip amounts can be
                    specified. The suggested tip amounts must be positive,
                    passed in a strictly increased order and must not exceed
                    *max\\_tip\\_amount*."
                  type: array
                  items:
                    type: integer
                start_parameter:
                  description:
                    'Unique deep-linking parameter. If left empty, **forwarded
                    copies** of the sent message will have a *Pay* button,
                    allowing multiple users to pay directly from the forwarded
                    message, using the same invoice. If non-empty, forwarded
                    copies of the sent message will have a *URL* button with a
                    deep link to the bot (instead of a *Pay* button), with the
                    value used as the start parameter'
                  type: string
                provider_data:
                  description:
                    'JSON-serialized data about the invoice, which will be
                    shared with the payment provider. A detailed description of
                    required fields should be provided by the payment provider.'
                  type: string
                photo_url:
                  description:
                    URL of the product photo for the invoice. Can be a photo of
                    the goods or a marketing image for a service. People like it
                    better when they see what they are paying for.
                  type: string
                photo_size:
                  description: Photo size in bytes
                  type: integer
                photo_width:
                  description: Photo width
                  type: integer
                photo_height:
                  description: Photo height
                  type: integer
                need_name:
                  description:
                    "Pass *True* if you require the user's full name to complete
                    the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_phone_number:
                  description:
                    "Pass *True* if you require the user's phone number to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_email:
                  description:
                    "Pass *True* if you require the user's email address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_shipping_address:
                  description:
                    "Pass *True* if you require the user's shipping address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_phone_number_to_provider:
                  description:
                    "Pass *True* if the user's phone number should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_email_to_provider:
                  description:
                    "Pass *True* if the user's email address should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                is_flexible:
                  description:
                    'Pass *True* if the final price depends on the shipping
                    method. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - title
                - description
                - payload
                - currency
                - prices
          application/json:
            schema:
              type: object
              properties:
                chat_id:
                  description:
                    'Unique identifier for the target chat or username of the
                    target channel (in the format `@channelusername`)'
                  anyOf:
                    - type: integer
                    - type: string
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                title:
                  description: 'Product name, 1-32 characters'
                  type: string
                  minLength: 1
                  maxLength: 32
                description:
                  description: 'Product description, 1-255 characters'
                  type: string
                  minLength: 1
                  maxLength: 255
                payload:
                  description:
                    'Bot-defined invoice payload, 1-128 bytes. This will not be
                    displayed to the user, use it for your internal processes.'
                  type: string
                provider_token:
                  description:
                    'Payment provider token, obtained via
                    [@BotFather](https://t.me/botfather). Pass an empty string
                    for payments in [Telegram Stars](https://t.me/BotNews/90).'
                  type: string
                currency:
                  description:
                    'Three-letter ISO 4217 currency code, see [more on
                    currencies](https://core.telegram.org/bots/payments#supported-currencies).
                    Pass “XTR” for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: string
                prices:
                  description:
                    'Price breakdown, a JSON-serialized list of components (e.g.
                    product price, tax, discount, delivery cost, delivery tax,
                    bonus, etc.). Must contain exactly one item for payments in
                    [Telegram Stars](https://t.me/BotNews/90).'
                  type: array
                  items:
                    $ref: '#/components/schemas/LabeledPrice'
                max_tip_amount:
                  description:
                    'The maximum accepted amount for tips in the *smallest
                    units* of the currency (integer, **not** float/double). For
                    example, for a maximum tip of `US$ 1.45` pass
                    `max_tip_amount = 145`. See the *exp* parameter in
                    [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
                    it shows the number of digits past the decimal point for
                    each currency (2 for the majority of currencies). Defaults
                    to 0. Not supported for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  default: 0
                  type: integer
                suggested_tip_amounts:
                  description:
                    "A JSON-serialized array of suggested amounts of tips in the
                    *smallest units* of the currency (integer, **not**
                    float/double). At most 4 suggested tip amounts can be
                    specified. The suggested tip amounts must be positive,
                    passed in a strictly increased order and must not exceed
                    *max\\_tip\\_amount*."
                  type: array
                  items:
                    type: integer
                start_parameter:
                  description:
                    'Unique deep-linking parameter. If left empty, **forwarded
                    copies** of the sent message will have a *Pay* button,
                    allowing multiple users to pay directly from the forwarded
                    message, using the same invoice. If non-empty, forwarded
                    copies of the sent message will have a *URL* button with a
                    deep link to the bot (instead of a *Pay* button), with the
                    value used as the start parameter'
                  type: string
                provider_data:
                  description:
                    'JSON-serialized data about the invoice, which will be
                    shared with the payment provider. A detailed description of
                    required fields should be provided by the payment provider.'
                  type: string
                photo_url:
                  description:
                    URL of the product photo for the invoice. Can be a photo of
                    the goods or a marketing image for a service. People like it
                    better when they see what they are paying for.
                  type: string
                photo_size:
                  description: Photo size in bytes
                  type: integer
                photo_width:
                  description: Photo width
                  type: integer
                photo_height:
                  description: Photo height
                  type: integer
                need_name:
                  description:
                    "Pass *True* if you require the user's full name to complete
                    the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_phone_number:
                  description:
                    "Pass *True* if you require the user's phone number to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_email:
                  description:
                    "Pass *True* if you require the user's email address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_shipping_address:
                  description:
                    "Pass *True* if you require the user's shipping address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_phone_number_to_provider:
                  description:
                    "Pass *True* if the user's phone number should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_email_to_provider:
                  description:
                    "Pass *True* if the user's email address should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                is_flexible:
                  description:
                    'Pass *True* if the final price depends on the shipping
                    method. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: boolean
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - title
                - description
                - payload
                - currency
                - prices
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /createInvoiceLink:
    post:
      description:
        Use this method to create a link for an invoice. Returns the created
        invoice link as *String* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#createinvoicelink'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    'Unique identifier of the business connection on behalf of
                    which the link will be created. For payments in [Telegram
                    Stars](https://t.me/BotNews/90) only.'
                  type: string
                title:
                  description: 'Product name, 1-32 characters'
                  type: string
                  minLength: 1
                  maxLength: 32
                description:
                  description: 'Product description, 1-255 characters'
                  type: string
                  minLength: 1
                  maxLength: 255
                payload:
                  description:
                    'Bot-defined invoice payload, 1-128 bytes. This will not be
                    displayed to the user, use it for your internal processes.'
                  type: string
                provider_token:
                  description:
                    'Payment provider token, obtained via
                    [@BotFather](https://t.me/botfather). Pass an empty string
                    for payments in [Telegram Stars](https://t.me/BotNews/90).'
                  type: string
                currency:
                  description:
                    'Three-letter ISO 4217 currency code, see [more on
                    currencies](https://core.telegram.org/bots/payments#supported-currencies).
                    Pass “XTR” for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: string
                prices:
                  description:
                    'Price breakdown, a JSON-serialized list of components (e.g.
                    product price, tax, discount, delivery cost, delivery tax,
                    bonus, etc.). Must contain exactly one item for payments in
                    [Telegram Stars](https://t.me/BotNews/90).'
                  type: array
                  items:
                    $ref: '#/components/schemas/LabeledPrice'
                subscription_period:
                  description:
                    'The number of seconds the subscription will be active for
                    before the next payment. The currency must be set to “XTR”
                    (Telegram Stars) if the parameter is used. Currently, it
                    must always be 2592000 (30 days) if specified. Any number of
                    subscriptions can be active for a given bot at the same
                    time, including multiple concurrent subscriptions from the
                    same user. Subscription price must no exceed 2500 Telegram
                    Stars.'
                  type: integer
                max_tip_amount:
                  description:
                    'The maximum accepted amount for tips in the *smallest
                    units* of the currency (integer, **not** float/double). For
                    example, for a maximum tip of `US$ 1.45` pass
                    `max_tip_amount = 145`. See the *exp* parameter in
                    [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
                    it shows the number of digits past the decimal point for
                    each currency (2 for the majority of currencies). Defaults
                    to 0. Not supported for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  default: 0
                  type: integer
                suggested_tip_amounts:
                  description:
                    "A JSON-serialized array of suggested amounts of tips in the
                    *smallest units* of the currency (integer, **not**
                    float/double). At most 4 suggested tip amounts can be
                    specified. The suggested tip amounts must be positive,
                    passed in a strictly increased order and must not exceed
                    *max\\_tip\\_amount*."
                  type: array
                  items:
                    type: integer
                provider_data:
                  description:
                    'JSON-serialized data about the invoice, which will be
                    shared with the payment provider. A detailed description of
                    required fields should be provided by the payment provider.'
                  type: string
                photo_url:
                  description:
                    URL of the product photo for the invoice. Can be a photo of
                    the goods or a marketing image for a service.
                  type: string
                photo_size:
                  description: Photo size in bytes
                  type: integer
                photo_width:
                  description: Photo width
                  type: integer
                photo_height:
                  description: Photo height
                  type: integer
                need_name:
                  description:
                    "Pass *True* if you require the user's full name to complete
                    the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_phone_number:
                  description:
                    "Pass *True* if you require the user's phone number to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_email:
                  description:
                    "Pass *True* if you require the user's email address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_shipping_address:
                  description:
                    "Pass *True* if you require the user's shipping address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_phone_number_to_provider:
                  description:
                    "Pass *True* if the user's phone number should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_email_to_provider:
                  description:
                    "Pass *True* if the user's email address should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                is_flexible:
                  description:
                    'Pass *True* if the final price depends on the shipping
                    method. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: boolean
              required:
                - title
                - description
                - payload
                - currency
                - prices
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    'Unique identifier of the business connection on behalf of
                    which the link will be created. For payments in [Telegram
                    Stars](https://t.me/BotNews/90) only.'
                  type: string
                title:
                  description: 'Product name, 1-32 characters'
                  type: string
                  minLength: 1
                  maxLength: 32
                description:
                  description: 'Product description, 1-255 characters'
                  type: string
                  minLength: 1
                  maxLength: 255
                payload:
                  description:
                    'Bot-defined invoice payload, 1-128 bytes. This will not be
                    displayed to the user, use it for your internal processes.'
                  type: string
                provider_token:
                  description:
                    'Payment provider token, obtained via
                    [@BotFather](https://t.me/botfather). Pass an empty string
                    for payments in [Telegram Stars](https://t.me/BotNews/90).'
                  type: string
                currency:
                  description:
                    'Three-letter ISO 4217 currency code, see [more on
                    currencies](https://core.telegram.org/bots/payments#supported-currencies).
                    Pass “XTR” for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: string
                prices:
                  description:
                    'Price breakdown, a JSON-serialized list of components (e.g.
                    product price, tax, discount, delivery cost, delivery tax,
                    bonus, etc.). Must contain exactly one item for payments in
                    [Telegram Stars](https://t.me/BotNews/90).'
                  type: array
                  items:
                    $ref: '#/components/schemas/LabeledPrice'
                subscription_period:
                  description:
                    'The number of seconds the subscription will be active for
                    before the next payment. The currency must be set to “XTR”
                    (Telegram Stars) if the parameter is used. Currently, it
                    must always be 2592000 (30 days) if specified. Any number of
                    subscriptions can be active for a given bot at the same
                    time, including multiple concurrent subscriptions from the
                    same user. Subscription price must no exceed 2500 Telegram
                    Stars.'
                  type: integer
                max_tip_amount:
                  description:
                    'The maximum accepted amount for tips in the *smallest
                    units* of the currency (integer, **not** float/double). For
                    example, for a maximum tip of `US$ 1.45` pass
                    `max_tip_amount = 145`. See the *exp* parameter in
                    [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
                    it shows the number of digits past the decimal point for
                    each currency (2 for the majority of currencies). Defaults
                    to 0. Not supported for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  default: 0
                  type: integer
                suggested_tip_amounts:
                  description:
                    "A JSON-serialized array of suggested amounts of tips in the
                    *smallest units* of the currency (integer, **not**
                    float/double). At most 4 suggested tip amounts can be
                    specified. The suggested tip amounts must be positive,
                    passed in a strictly increased order and must not exceed
                    *max\\_tip\\_amount*."
                  type: array
                  items:
                    type: integer
                provider_data:
                  description:
                    'JSON-serialized data about the invoice, which will be
                    shared with the payment provider. A detailed description of
                    required fields should be provided by the payment provider.'
                  type: string
                photo_url:
                  description:
                    URL of the product photo for the invoice. Can be a photo of
                    the goods or a marketing image for a service.
                  type: string
                photo_size:
                  description: Photo size in bytes
                  type: integer
                photo_width:
                  description: Photo width
                  type: integer
                photo_height:
                  description: Photo height
                  type: integer
                need_name:
                  description:
                    "Pass *True* if you require the user's full name to complete
                    the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_phone_number:
                  description:
                    "Pass *True* if you require the user's phone number to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_email:
                  description:
                    "Pass *True* if you require the user's email address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_shipping_address:
                  description:
                    "Pass *True* if you require the user's shipping address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_phone_number_to_provider:
                  description:
                    "Pass *True* if the user's phone number should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_email_to_provider:
                  description:
                    "Pass *True* if the user's email address should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                is_flexible:
                  description:
                    'Pass *True* if the final price depends on the shipping
                    method. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: boolean
              required:
                - title
                - description
                - payload
                - currency
                - prices
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    'Unique identifier of the business connection on behalf of
                    which the link will be created. For payments in [Telegram
                    Stars](https://t.me/BotNews/90) only.'
                  type: string
                title:
                  description: 'Product name, 1-32 characters'
                  type: string
                  minLength: 1
                  maxLength: 32
                description:
                  description: 'Product description, 1-255 characters'
                  type: string
                  minLength: 1
                  maxLength: 255
                payload:
                  description:
                    'Bot-defined invoice payload, 1-128 bytes. This will not be
                    displayed to the user, use it for your internal processes.'
                  type: string
                provider_token:
                  description:
                    'Payment provider token, obtained via
                    [@BotFather](https://t.me/botfather). Pass an empty string
                    for payments in [Telegram Stars](https://t.me/BotNews/90).'
                  type: string
                currency:
                  description:
                    'Three-letter ISO 4217 currency code, see [more on
                    currencies](https://core.telegram.org/bots/payments#supported-currencies).
                    Pass “XTR” for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: string
                prices:
                  description:
                    'Price breakdown, a JSON-serialized list of components (e.g.
                    product price, tax, discount, delivery cost, delivery tax,
                    bonus, etc.). Must contain exactly one item for payments in
                    [Telegram Stars](https://t.me/BotNews/90).'
                  type: array
                  items:
                    $ref: '#/components/schemas/LabeledPrice'
                subscription_period:
                  description:
                    'The number of seconds the subscription will be active for
                    before the next payment. The currency must be set to “XTR”
                    (Telegram Stars) if the parameter is used. Currently, it
                    must always be 2592000 (30 days) if specified. Any number of
                    subscriptions can be active for a given bot at the same
                    time, including multiple concurrent subscriptions from the
                    same user. Subscription price must no exceed 2500 Telegram
                    Stars.'
                  type: integer
                max_tip_amount:
                  description:
                    'The maximum accepted amount for tips in the *smallest
                    units* of the currency (integer, **not** float/double). For
                    example, for a maximum tip of `US$ 1.45` pass
                    `max_tip_amount = 145`. See the *exp* parameter in
                    [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
                    it shows the number of digits past the decimal point for
                    each currency (2 for the majority of currencies). Defaults
                    to 0. Not supported for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  default: 0
                  type: integer
                suggested_tip_amounts:
                  description:
                    "A JSON-serialized array of suggested amounts of tips in the
                    *smallest units* of the currency (integer, **not**
                    float/double). At most 4 suggested tip amounts can be
                    specified. The suggested tip amounts must be positive,
                    passed in a strictly increased order and must not exceed
                    *max\\_tip\\_amount*."
                  type: array
                  items:
                    type: integer
                provider_data:
                  description:
                    'JSON-serialized data about the invoice, which will be
                    shared with the payment provider. A detailed description of
                    required fields should be provided by the payment provider.'
                  type: string
                photo_url:
                  description:
                    URL of the product photo for the invoice. Can be a photo of
                    the goods or a marketing image for a service.
                  type: string
                photo_size:
                  description: Photo size in bytes
                  type: integer
                photo_width:
                  description: Photo width
                  type: integer
                photo_height:
                  description: Photo height
                  type: integer
                need_name:
                  description:
                    "Pass *True* if you require the user's full name to complete
                    the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_phone_number:
                  description:
                    "Pass *True* if you require the user's phone number to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_email:
                  description:
                    "Pass *True* if you require the user's email address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                need_shipping_address:
                  description:
                    "Pass *True* if you require the user's shipping address to
                    complete the order. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_phone_number_to_provider:
                  description:
                    "Pass *True* if the user's phone number should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                send_email_to_provider:
                  description:
                    "Pass *True* if the user's email address should be sent to
                    the provider. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90)."
                  type: boolean
                is_flexible:
                  description:
                    'Pass *True* if the final price depends on the shipping
                    method. Ignored for payments in [Telegram
                    Stars](https://t.me/BotNews/90).'
                  type: boolean
              required:
                - title
                - description
                - payload
                - currency
                - prices
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: string
                required:
                  - ok
                  - result
  /answerShippingQuery:
    post:
      description:
        "If you sent an invoice requesting a shipping address and the parameter
        *is\\_flexible* was specified, the Bot API will send an
        [Update](https://core.telegram.org/bots/api/#update) with a
        *shipping\\_query* field to the bot. Use this method to reply to
        shipping queries. On success, *True* is returned."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#answershippingquery'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                shipping_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                ok:
                  description:
                    'Pass *True* if delivery to the specified address is
                    possible and *False* if there are any problems (for example,
                    if delivery to the specified address is not possible)'
                  type: boolean
                shipping_options:
                  description:
                    Required if *ok* is *True*. A JSON-serialized array of
                    available shipping options.
                  type: array
                  items:
                    $ref: '#/components/schemas/ShippingOption'
                error_message:
                  description:
                    'Required if *ok* is *False*. Error message in human
                    readable form that explains why it is impossible to complete
                    the order (e.g. “Sorry, delivery to your desired address is
                    unavailable”). Telegram will display this message to the
                    user.'
                  type: string
              required:
                - shipping_query_id
                - ok
          multipart/form-data:
            schema:
              type: object
              properties:
                shipping_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                ok:
                  description:
                    'Pass *True* if delivery to the specified address is
                    possible and *False* if there are any problems (for example,
                    if delivery to the specified address is not possible)'
                  type: boolean
                shipping_options:
                  description:
                    Required if *ok* is *True*. A JSON-serialized array of
                    available shipping options.
                  type: array
                  items:
                    $ref: '#/components/schemas/ShippingOption'
                error_message:
                  description:
                    'Required if *ok* is *False*. Error message in human
                    readable form that explains why it is impossible to complete
                    the order (e.g. “Sorry, delivery to your desired address is
                    unavailable”). Telegram will display this message to the
                    user.'
                  type: string
              required:
                - shipping_query_id
                - ok
          application/json:
            schema:
              type: object
              properties:
                shipping_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                ok:
                  description:
                    'Pass *True* if delivery to the specified address is
                    possible and *False* if there are any problems (for example,
                    if delivery to the specified address is not possible)'
                  type: boolean
                shipping_options:
                  description:
                    Required if *ok* is *True*. A JSON-serialized array of
                    available shipping options.
                  type: array
                  items:
                    $ref: '#/components/schemas/ShippingOption'
                error_message:
                  description:
                    'Required if *ok* is *False*. Error message in human
                    readable form that explains why it is impossible to complete
                    the order (e.g. “Sorry, delivery to your desired address is
                    unavailable”). Telegram will display this message to the
                    user.'
                  type: string
              required:
                - shipping_query_id
                - ok
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /answerPreCheckoutQuery:
    post:
      description:
        "Once the user has confirmed their payment and shipping details, the Bot
        API sends the final confirmation in the form of an
        [Update](https://core.telegram.org/bots/api/#update) with the field
        *pre\\_checkout\\_query*. Use this method to respond to such
        pre-checkout queries. On success, *True* is returned. **Note:** The Bot
        API must receive an answer within 10 seconds after the pre-checkout
        query was sent."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#answerprecheckoutquery'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                pre_checkout_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                ok:
                  description:
                    'Specify *True* if everything is alright (goods are
                    available, etc.) and the bot is ready to proceed with the
                    order. Use *False* if there are any problems.'
                  type: boolean
                error_message:
                  description:
                    'Required if *ok* is *False*. Error message in human
                    readable form that explains the reason for failure to
                    proceed with the checkout (e.g. "Sorry, somebody just bought
                    the last of our amazing black T-shirts while you were busy
                    filling out your payment details. Please choose a different
                    color or garment!"). Telegram will display this message to
                    the user.'
                  type: string
              required:
                - pre_checkout_query_id
                - ok
          multipart/form-data:
            schema:
              type: object
              properties:
                pre_checkout_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                ok:
                  description:
                    'Specify *True* if everything is alright (goods are
                    available, etc.) and the bot is ready to proceed with the
                    order. Use *False* if there are any problems.'
                  type: boolean
                error_message:
                  description:
                    'Required if *ok* is *False*. Error message in human
                    readable form that explains the reason for failure to
                    proceed with the checkout (e.g. "Sorry, somebody just bought
                    the last of our amazing black T-shirts while you were busy
                    filling out your payment details. Please choose a different
                    color or garment!"). Telegram will display this message to
                    the user.'
                  type: string
              required:
                - pre_checkout_query_id
                - ok
          application/json:
            schema:
              type: object
              properties:
                pre_checkout_query_id:
                  description: Unique identifier for the query to be answered
                  type: string
                ok:
                  description:
                    'Specify *True* if everything is alright (goods are
                    available, etc.) and the bot is ready to proceed with the
                    order. Use *False* if there are any problems.'
                  type: boolean
                error_message:
                  description:
                    'Required if *ok* is *False*. Error message in human
                    readable form that explains the reason for failure to
                    proceed with the checkout (e.g. "Sorry, somebody just bought
                    the last of our amazing black T-shirts while you were busy
                    filling out your payment details. Please choose a different
                    color or garment!"). Telegram will display this message to
                    the user.'
                  type: string
              required:
                - pre_checkout_query_id
                - ok
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /getStarTransactions:
    post:
      description:
        "Returns the bot's Telegram Star transactions in chronological order. On
        success, returns a
        [StarTransactions](https://core.telegram.org/bots/api/#startransactions)
        object."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getstartransactions'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                offset:
                  description: Number of transactions to skip in the response
                  type: integer
                limit:
                  description:
                    The maximum number of transactions to be retrieved. Values
                    between 1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
          multipart/form-data:
            schema:
              type: object
              properties:
                offset:
                  description: Number of transactions to skip in the response
                  type: integer
                limit:
                  description:
                    The maximum number of transactions to be retrieved. Values
                    between 1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
          application/json:
            schema:
              type: object
              properties:
                offset:
                  description: Number of transactions to skip in the response
                  type: integer
                limit:
                  description:
                    The maximum number of transactions to be retrieved. Values
                    between 1-100 are accepted. Defaults to 100.
                  default: 100
                  type: integer
                  minimum: 1
                  maximum: 100
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/StarTransactions'
                required:
                  - ok
                  - result
  /refundStarPayment:
    post:
      description:
        'Refunds a successful payment in [Telegram
        Stars](https://t.me/BotNews/90). Returns *True* on success.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#refundstarpayment'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Identifier of the user whose payment will be refunded
                  type: integer
                telegram_payment_charge_id:
                  description: Telegram payment identifier
                  type: string
              required:
                - user_id
                - telegram_payment_charge_id
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Identifier of the user whose payment will be refunded
                  type: integer
                telegram_payment_charge_id:
                  description: Telegram payment identifier
                  type: string
              required:
                - user_id
                - telegram_payment_charge_id
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Identifier of the user whose payment will be refunded
                  type: integer
                telegram_payment_charge_id:
                  description: Telegram payment identifier
                  type: string
              required:
                - user_id
                - telegram_payment_charge_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /editUserStarSubscription:
    post:
      description:
        Allows the bot to cancel or re-enable extension of a subscription paid
        in Telegram Stars. Returns *True* on success.
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#edituserstarsubscription'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Identifier of the user whose subscription will be edited
                  type: integer
                telegram_payment_charge_id:
                  description: Telegram payment identifier for the subscription
                  type: string
                is_canceled:
                  description:
                    Pass *True* to cancel extension of the user subscription;
                    the subscription must be active up to the end of the current
                    subscription period. Pass *False* to allow the user to
                    re-enable a subscription that was previously canceled by the
                    bot.
                  type: boolean
              required:
                - user_id
                - telegram_payment_charge_id
                - is_canceled
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Identifier of the user whose subscription will be edited
                  type: integer
                telegram_payment_charge_id:
                  description: Telegram payment identifier for the subscription
                  type: string
                is_canceled:
                  description:
                    Pass *True* to cancel extension of the user subscription;
                    the subscription must be active up to the end of the current
                    subscription period. Pass *False* to allow the user to
                    re-enable a subscription that was previously canceled by the
                    bot.
                  type: boolean
              required:
                - user_id
                - telegram_payment_charge_id
                - is_canceled
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description:
                    Identifier of the user whose subscription will be edited
                  type: integer
                telegram_payment_charge_id:
                  description: Telegram payment identifier for the subscription
                  type: string
                is_canceled:
                  description:
                    Pass *True* to cancel extension of the user subscription;
                    the subscription must be active up to the end of the current
                    subscription period. Pass *False* to allow the user to
                    re-enable a subscription that was previously canceled by the
                    bot.
                  type: boolean
              required:
                - user_id
                - telegram_payment_charge_id
                - is_canceled
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /setPassportDataErrors:
    post:
      description:
        "Informs a user that some of the Telegram Passport elements they
        provided contains errors. The user will not be able to re-submit their
        Passport to you until the errors are fixed (the contents of the field
        for which you returned the error must change). Returns *True* on
        success.\n\nUse this if the data submitted by the user doesn't satisfy
        the standards your service requires for any reason. For example, if a
        birthday date seems invalid, a submitted document is blurry, a scan
        shows evidence of tampering, etc. Supply some details in the error
        message to make sure the user knows how to correct the issues."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setpassportdataerrors'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier
                  type: integer
                errors:
                  description: A JSON-serialized array describing the errors
                  type: array
                  items:
                    $ref: '#/components/schemas/PassportElementError'
              required:
                - user_id
                - errors
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier
                  type: integer
                errors:
                  description: A JSON-serialized array describing the errors
                  type: array
                  items:
                    $ref: '#/components/schemas/PassportElementError'
              required:
                - user_id
                - errors
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier
                  type: integer
                errors:
                  description: A JSON-serialized array describing the errors
                  type: array
                  items:
                    $ref: '#/components/schemas/PassportElementError'
              required:
                - user_id
                - errors
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    default: true
                    type: boolean
                required:
                  - ok
                  - result
  /sendGame:
    post:
      description:
        'Use this method to send a game. On success, the sent
        [Message](https://core.telegram.org/bots/api/#message) is returned.'
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sendgame'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description: Unique identifier for the target chat
                  type: integer
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                game_short_name:
                  description:
                    'Short name of the game, serves as the unique identifier for
                    the game. Set up your games via
                    [@BotFather](https://t.me/botfather).'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - game_short_name
          multipart/form-data:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description: Unique identifier for the target chat
                  type: integer
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                game_short_name:
                  description:
                    'Short name of the game, serves as the unique identifier for
                    the game. Set up your games via
                    [@BotFather](https://t.me/botfather).'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - game_short_name
          application/json:
            schema:
              type: object
              properties:
                business_connection_id:
                  description:
                    Unique identifier of the business connection on behalf of
                    which the message will be sent
                  type: string
                chat_id:
                  description: Unique identifier for the target chat
                  type: integer
                message_thread_id:
                  description:
                    Unique identifier for the target message thread (topic) of
                    the forum; for forum supergroups only
                  type: integer
                game_short_name:
                  description:
                    'Short name of the game, serves as the unique identifier for
                    the game. Set up your games via
                    [@BotFather](https://t.me/botfather).'
                  type: string
                disable_notification:
                  description:
                    'Sends the message
                    [silently](https://telegram.org/blog/channels-2-0#silent-messages).
                    Users will receive a notification with no sound.'
                  type: boolean
                protect_content:
                  description:
                    Protects the contents of the sent message from forwarding
                    and saving
                  type: boolean
                allow_paid_broadcast:
                  description:
                    "Pass *True* to allow up to 1000 messages per second,
                    ignoring [broadcasting
                    limits](https://core.telegram.org/bots/faq#how-can-i-message-all-of-my-bot-39s-subscribers-at-once)
                    for a fee of 0.1 Telegram Stars per message. The relevant
                    Stars will be withdrawn from the bot's balance"
                  type: boolean
                message_effect_id:
                  description:
                    Unique identifier of the message effect to be added to the
                    message; for private chats only
                  type: string
                reply_parameters:
                  $ref: '#/components/schemas/ReplyParameters'
                reply_markup:
                  $ref: '#/components/schemas/InlineKeyboardMarkup'
              required:
                - chat_id
                - game_short_name
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    $ref: '#/components/schemas/Message'
                required:
                  - ok
                  - result
  /setGameScore:
    post:
      description:
        "Use this method to set the score of the specified user in a game
        message. On success, if the message is not an inline message, the
        [Message](https://core.telegram.org/bots/api/#message) is returned,
        otherwise *True* is returned. Returns an error, if the new score is not
        greater than the user's current score in the chat and *force* is
        *False*."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#setgamescore'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier
                  type: integer
                score:
                  description: 'New score, must be non-negative'
                  type: integer
                force:
                  description:
                    Pass *True* if the high score is allowed to decrease. This
                    can be useful when fixing mistakes or banning cheaters
                  type: boolean
                disable_edit_message:
                  description:
                    Pass *True* if the game message should not be automatically
                    edited to include the current scoreboard
                  type: boolean
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat"
                  type: integer
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the sent message"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
              required:
                - user_id
                - score
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier
                  type: integer
                score:
                  description: 'New score, must be non-negative'
                  type: integer
                force:
                  description:
                    Pass *True* if the high score is allowed to decrease. This
                    can be useful when fixing mistakes or banning cheaters
                  type: boolean
                disable_edit_message:
                  description:
                    Pass *True* if the game message should not be automatically
                    edited to include the current scoreboard
                  type: boolean
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat"
                  type: integer
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the sent message"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
              required:
                - user_id
                - score
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: User identifier
                  type: integer
                score:
                  description: 'New score, must be non-negative'
                  type: integer
                force:
                  description:
                    Pass *True* if the high score is allowed to decrease. This
                    can be useful when fixing mistakes or banning cheaters
                  type: boolean
                disable_edit_message:
                  description:
                    Pass *True* if the game message should not be automatically
                    edited to include the current scoreboard
                  type: boolean
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat"
                  type: integer
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the sent message"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
              required:
                - user_id
                - score
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    anyOf:
                      - $ref: '#/components/schemas/Message'
                      - default: true
                        type: boolean
                required:
                  - ok
                  - result
  /getGameHighScores:
    post:
      description:
        "Use this method to get data for high score tables. Will return the
        score of the specified user and several of their neighbors in a game.
        Returns an Array of
        [GameHighScore](https://core.telegram.org/bots/api/#gamehighscore)
        objects.\n\nThis method will currently return scores for the target
        user, plus two of their closest neighbors on each side. Will also return
        the top three users if the user and their neighbors are not among them.
        Please note that this behavior is subject to change."
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#getgamehighscores'
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                user_id:
                  description: Target user id
                  type: integer
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat"
                  type: integer
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the sent message"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
              required:
                - user_id
          multipart/form-data:
            schema:
              type: object
              properties:
                user_id:
                  description: Target user id
                  type: integer
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat"
                  type: integer
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the sent message"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
              required:
                - user_id
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  description: Target user id
                  type: integer
                chat_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Unique identifier for the target chat"
                  type: integer
                message_id:
                  description:
                    "Required if *inline\\_message\\_id* is not specified.
                    Identifier of the sent message"
                  type: integer
                inline_message_id:
                  description:
                    "Required if *chat\\_id* and *message\\_id* are not
                    specified. Identifier of the inline message"
                  type: string
              required:
                - user_id
        required: true
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    default: true
                    type: boolean
                  result:
                    type: array
                    items:
                      $ref: '#/components/schemas/GameHighScore'
                required:
                  - ok
                  - result
components:
  schemas:
    Error:
      type: object
      properties:
        ok:
          default: false
          type: boolean
        error_code:
          type: integer
        description:
          type: string
        parameters:
          $ref: '#/components/schemas/ResponseParameters'
      required:
        - ok
        - error_code
        - description
    Update:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#update'
      description:
        "This [object](https://core.telegram.org/bots/api/#available-types)
        represents an incoming update.  \nAt most **one** of the optional
        parameters can be present in any given update."
      type: object
      properties:
        update_id:
          description:
            "The update's unique identifier. Update identifiers start from a
            certain positive number and increase sequentially. This identifier
            becomes especially handy if you're using
            [webhooks](https://core.telegram.org/bots/api/#setwebhook), since it
            allows you to ignore repeated updates or to restore the correct
            update sequence, should they get out of order. If there are no new
            updates for at least a week, then identifier of the next update will
            be chosen randomly instead of sequentially."
          type: integer
        message:
          $ref: '#/components/schemas/Message'
        edited_message:
          $ref: '#/components/schemas/Message'
        channel_post:
          $ref: '#/components/schemas/Message'
        edited_channel_post:
          $ref: '#/components/schemas/Message'
        business_connection:
          $ref: '#/components/schemas/BusinessConnection'
        business_message:
          $ref: '#/components/schemas/Message'
        edited_business_message:
          $ref: '#/components/schemas/Message'
        deleted_business_messages:
          $ref: '#/components/schemas/BusinessMessagesDeleted'
        message_reaction:
          $ref: '#/components/schemas/MessageReactionUpdated'
        message_reaction_count:
          $ref: '#/components/schemas/MessageReactionCountUpdated'
        inline_query:
          $ref: '#/components/schemas/InlineQuery'
        chosen_inline_result:
          $ref: '#/components/schemas/ChosenInlineResult'
        callback_query:
          $ref: '#/components/schemas/CallbackQuery'
        shipping_query:
          $ref: '#/components/schemas/ShippingQuery'
        pre_checkout_query:
          $ref: '#/components/schemas/PreCheckoutQuery'
        purchased_paid_media:
          $ref: '#/components/schemas/PaidMediaPurchased'
        poll:
          $ref: '#/components/schemas/Poll'
        poll_answer:
          $ref: '#/components/schemas/PollAnswer'
        my_chat_member:
          $ref: '#/components/schemas/ChatMemberUpdated'
        chat_member:
          $ref: '#/components/schemas/ChatMemberUpdated'
        chat_join_request:
          $ref: '#/components/schemas/ChatJoinRequest'
        chat_boost:
          $ref: '#/components/schemas/ChatBoostUpdated'
        removed_chat_boost:
          $ref: '#/components/schemas/ChatBoostRemoved'
      required:
        - update_id
    WebhookInfo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#webhookinfo'
      description: Describes the current status of a webhook.
      type: object
      properties:
        url:
          description: 'Webhook URL, may be empty if webhook is not set up'
          type: string
        has_custom_certificate:
          description:
            '*True*, if a custom certificate was provided for webhook
            certificate checks'
          type: boolean
        pending_update_count:
          description: Number of updates awaiting delivery
          type: integer
        ip_address:
          description: '*Optional*. Currently used webhook IP address'
          type: string
        last_error_date:
          description:
            '*Optional*. Unix time for the most recent error that happened when
            trying to deliver an update via webhook'
          type: integer
        last_error_message:
          description:
            '*Optional*. Error message in human-readable format for the most
            recent error that happened when trying to deliver an update via
            webhook'
          type: string
        last_synchronization_error_date:
          description:
            '*Optional*. Unix time of the most recent error that happened when
            trying to synchronize available updates with Telegram datacenters'
          type: integer
        max_connections:
          description:
            '*Optional*. The maximum allowed number of simultaneous HTTPS
            connections to the webhook for update delivery'
          type: integer
        allowed_updates:
          description:
            "*Optional*. A list of update types the bot is subscribed to.
            Defaults to all update types except *chat\\_member*"
          type: array
          items:
            type: string
      required:
        - url
        - has_custom_certificate
        - pending_update_count
    User:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#user'
      description: This object represents a Telegram user or bot.
      type: object
      properties:
        id:
          description:
            'Unique identifier for this user or bot. This number may have more
            than 32 significant bits and some programming languages may have
            difficulty/silent defects in interpreting it. But it has at most 52
            significant bits, so a 64-bit integer or double-precision float type
            are safe for storing this identifier.'
          type: integer
        is_bot:
          description: '*True*, if this user is a bot'
          type: boolean
        first_name:
          description: "User's or bot's first name"
          type: string
        last_name:
          description: "*Optional*. User's or bot's last name"
          type: string
        username:
          description: "*Optional*. User's or bot's username"
          type: string
        language_code:
          description:
            "*Optional*. [IETF language
            tag](https://en.wikipedia.org/wiki/IETF_language_tag) of the user's
            language"
          type: string
        is_premium:
          description:
            '*Optional*. *True*, if this user is a Telegram Premium user'
          default: true
          type: boolean
        added_to_attachment_menu:
          description:
            '*Optional*. *True*, if this user added the bot to the attachment
            menu'
          default: true
          type: boolean
        can_join_groups:
          description:
            '*Optional*. *True*, if the bot can be invited to groups. Returned
            only in [getMe](https://core.telegram.org/bots/api/#getme).'
          type: boolean
        can_read_all_group_messages:
          description:
            '*Optional*. *True*, if [privacy
            mode](https://core.telegram.org/bots/features#privacy-mode) is
            disabled for the bot. Returned only in
            [getMe](https://core.telegram.org/bots/api/#getme).'
          type: boolean
        supports_inline_queries:
          description:
            '*Optional*. *True*, if the bot supports inline queries. Returned
            only in [getMe](https://core.telegram.org/bots/api/#getme).'
          type: boolean
        can_connect_to_business:
          description:
            '*Optional*. *True*, if the bot can be connected to a Telegram
            Business account to receive its messages. Returned only in
            [getMe](https://core.telegram.org/bots/api/#getme).'
          type: boolean
        has_main_web_app:
          description:
            '*Optional*. *True*, if the bot has a main Web App. Returned only in
            [getMe](https://core.telegram.org/bots/api/#getme).'
          type: boolean
      required:
        - id
        - is_bot
        - first_name
    Chat:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chat'
      description: This object represents a chat.
      type: object
      properties:
        id:
          description:
            'Unique identifier for this chat. This number may have more than 32
            significant bits and some programming languages may have
            difficulty/silent defects in interpreting it. But it has at most 52
            significant bits, so a signed 64-bit integer or double-precision
            float type are safe for storing this identifier.'
          type: integer
        type:
          description:
            'Type of the chat, can be either “private”, “group”, “supergroup” or
            “channel”'
          type: string
          enum:
            - private
            - group
            - supergroup
            - channel
        title:
          description:
            '*Optional*. Title, for supergroups, channels and group chats'
          type: string
        username:
          description:
            '*Optional*. Username, for private chats, supergroups and channels
            if available'
          type: string
        first_name:
          description:
            '*Optional*. First name of the other party in a private chat'
          type: string
        last_name:
          description:
            '*Optional*. Last name of the other party in a private chat'
          type: string
        is_forum:
          description:
            '*Optional*. *True*, if the supergroup chat is a forum (has
            [topics](https://telegram.org/blog/topics-in-groups-collectible-usernames#topics-in-groups)
            enabled)'
          default: true
          type: boolean
      required:
        - id
        - type
    ChatFullInfo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatfullinfo'
      description: This object contains full information about a chat.
      type: object
      properties:
        id:
          description:
            'Unique identifier for this chat. This number may have more than 32
            significant bits and some programming languages may have
            difficulty/silent defects in interpreting it. But it has at most 52
            significant bits, so a signed 64-bit integer or double-precision
            float type are safe for storing this identifier.'
          type: integer
        type:
          description:
            'Type of the chat, can be either “private”, “group”, “supergroup” or
            “channel”'
          type: string
          enum:
            - private
            - group
            - supergroup
            - channel
        title:
          description:
            '*Optional*. Title, for supergroups, channels and group chats'
          type: string
        username:
          description:
            '*Optional*. Username, for private chats, supergroups and channels
            if available'
          type: string
        first_name:
          description:
            '*Optional*. First name of the other party in a private chat'
          type: string
        last_name:
          description:
            '*Optional*. Last name of the other party in a private chat'
          type: string
        is_forum:
          description:
            '*Optional*. *True*, if the supergroup chat is a forum (has
            [topics](https://telegram.org/blog/topics-in-groups-collectible-usernames#topics-in-groups)
            enabled)'
          default: true
          type: boolean
        accent_color_id:
          description:
            'Identifier of the accent color for the chat name and backgrounds of
            the chat photo, reply header, and link preview. See [accent
            colors](https://core.telegram.org/bots/api/#accent-colors) for more
            details.'
          type: integer
        max_reaction_count:
          description:
            The maximum number of reactions that can be set on a message in the
            chat
          type: integer
        photo:
          $ref: '#/components/schemas/ChatPhoto'
        active_usernames:
          description:
            '*Optional*. If non-empty, the list of all [active chat
            usernames](https://telegram.org/blog/topics-in-groups-collectible-usernames#collectible-usernames);
            for private chats, supergroups and channels'
          type: array
          items:
            type: string
        birthdate:
          $ref: '#/components/schemas/Birthdate'
        business_intro:
          $ref: '#/components/schemas/BusinessIntro'
        business_location:
          $ref: '#/components/schemas/BusinessLocation'
        business_opening_hours:
          $ref: '#/components/schemas/BusinessOpeningHours'
        personal_chat:
          $ref: '#/components/schemas/Chat'
        available_reactions:
          description:
            '*Optional*. List of available reactions allowed in the chat. If
            omitted, then all [emoji
            reactions](https://core.telegram.org/bots/api/#reactiontypeemoji)
            are allowed.'
          type: array
          items:
            $ref: '#/components/schemas/ReactionType'
        background_custom_emoji_id:
          description:
            '*Optional*. Custom emoji identifier of the emoji chosen by the chat
            for the reply header and link preview background'
          type: string
        profile_accent_color_id:
          description:
            "*Optional*. Identifier of the accent color for the chat's profile
            background. See [profile accent
            colors](https://core.telegram.org/bots/api/#profile-accent-colors)
            for more details."
          type: integer
        profile_background_custom_emoji_id:
          description:
            '*Optional*. Custom emoji identifier of the emoji chosen by the chat
            for its profile background'
          type: string
        emoji_status_custom_emoji_id:
          description:
            '*Optional*. Custom emoji identifier of the emoji status of the chat
            or the other party in a private chat'
          type: string
        emoji_status_expiration_date:
          description:
            '*Optional*. Expiration date of the emoji status of the chat or the
            other party in a private chat, in Unix time, if any'
          type: integer
        bio:
          description: '*Optional*. Bio of the other party in a private chat'
          type: string
        has_private_forwards:
          description:
            '*Optional*. *True*, if privacy settings of the other party in the
            private chat allows to use `tg://user?id=<user_id>` links only in
            chats with the user'
          default: true
          type: boolean
        has_restricted_voice_and_video_messages:
          description:
            '*Optional*. *True*, if the privacy settings of the other party
            restrict sending voice and video note messages in the private chat'
          default: true
          type: boolean
        join_to_send_messages:
          description:
            '*Optional*. *True*, if users need to join the supergroup before
            they can send messages'
          default: true
          type: boolean
        join_by_request:
          description:
            '*Optional*. *True*, if all users directly joining the supergroup
            without using an invite link need to be approved by supergroup
            administrators'
          default: true
          type: boolean
        description:
          description:
            '*Optional*. Description, for groups, supergroups and channel chats'
          type: string
        invite_link:
          description:
            '*Optional*. Primary invite link, for groups, supergroups and
            channel chats'
          type: string
        pinned_message:
          $ref: '#/components/schemas/Message'
        permissions:
          $ref: '#/components/schemas/ChatPermissions'
        can_send_gift:
          description: '*Optional*. *True*, if gifts can be sent to the chat'
          default: true
          type: boolean
        can_send_paid_media:
          description:
            '*Optional*. *True*, if paid media messages can be sent or forwarded
            to the channel chat. The field is available only for channel chats.'
          default: true
          type: boolean
        slow_mode_delay:
          description:
            '*Optional*. For supergroups, the minimum allowed delay between
            consecutive messages sent by each unprivileged user; in seconds'
          type: integer
        unrestrict_boost_count:
          description:
            '*Optional*. For supergroups, the minimum number of boosts that a
            non-administrator user needs to add in order to ignore slow mode and
            chat permissions'
          type: integer
        message_auto_delete_time:
          description:
            '*Optional*. The time after which all messages sent to the chat will
            be automatically deleted; in seconds'
          type: integer
        has_aggressive_anti_spam_enabled:
          description:
            '*Optional*. *True*, if aggressive anti-spam checks are enabled in
            the supergroup. The field is only available to chat administrators.'
          default: true
          type: boolean
        has_hidden_members:
          description:
            '*Optional*. *True*, if non-administrators can only get the list of
            bots and administrators in the chat'
          default: true
          type: boolean
        has_protected_content:
          description:
            "*Optional*. *True*, if messages from the chat can't be forwarded to
            other chats"
          default: true
          type: boolean
        has_visible_history:
          description:
            '*Optional*. *True*, if new chat members will have access to old
            messages; available only to chat administrators'
          default: true
          type: boolean
        sticker_set_name:
          description:
            '*Optional*. For supergroups, name of the group sticker set'
          type: string
        can_set_sticker_set:
          description:
            '*Optional*. *True*, if the bot can change the group sticker set'
          default: true
          type: boolean
        custom_emoji_sticker_set_name:
          description:
            "*Optional*. For supergroups, the name of the group's custom emoji
            sticker set. Custom emoji from this set can be used by all users and
            bots in the group."
          type: string
        linked_chat_id:
          description:
            '*Optional*. Unique identifier for the linked chat, i.e. the
            discussion group identifier for a channel and vice versa; for
            supergroups and channel chats. This identifier may be greater than
            32 bits and some programming languages may have difficulty/silent
            defects in interpreting it. But it is smaller than 52 bits, so a
            signed 64 bit integer or double-precision float type are safe for
            storing this identifier.'
          type: integer
        location:
          $ref: '#/components/schemas/ChatLocation'
      required:
        - id
        - type
        - accent_color_id
        - max_reaction_count
    Message:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#message'
      description: This object represents a message.
      type: object
      properties:
        message_id:
          description:
            'Unique message identifier inside this chat. In specific instances
            (e.g., message containing a video sent to a big chat), the server
            might automatically schedule a message instead of sending it
            immediately. In such cases, this field will be 0 and the relevant
            message will be unusable until it is actually sent'
          type: integer
        message_thread_id:
          description:
            '*Optional*. Unique identifier of a message thread to which the
            message belongs; for supergroups only'
          type: integer
        from:
          $ref: '#/components/schemas/User'
        sender_chat:
          $ref: '#/components/schemas/Chat'
        sender_boost_count:
          description:
            '*Optional*. If the sender of the message boosted the chat, the
            number of boosts added by the user'
          type: integer
        sender_business_bot:
          $ref: '#/components/schemas/User'
        date:
          description:
            'Date the message was sent in Unix time. It is always a positive
            number, representing a valid date.'
          type: integer
        business_connection_id:
          description:
            '*Optional*. Unique identifier of the business connection from which
            the message was received. If non-empty, the message belongs to a
            chat of the corresponding business account that is independent from
            any potential bot chat which might share the same identifier.'
          type: string
        chat:
          $ref: '#/components/schemas/Chat'
        forward_origin:
          $ref: '#/components/schemas/MessageOrigin'
        is_topic_message:
          description:
            '*Optional*. *True*, if the message is sent to a forum topic'
          default: true
          type: boolean
        is_automatic_forward:
          description:
            '*Optional*. *True*, if the message is a channel post that was
            automatically forwarded to the connected discussion group'
          default: true
          type: boolean
        reply_to_message:
          $ref: '#/components/schemas/Message'
        external_reply:
          $ref: '#/components/schemas/ExternalReplyInfo'
        quote:
          $ref: '#/components/schemas/TextQuote'
        reply_to_story:
          $ref: '#/components/schemas/Story'
        via_bot:
          $ref: '#/components/schemas/User'
        edit_date:
          description:
            '*Optional*. Date the message was last edited in Unix time'
          type: integer
        has_protected_content:
          description: "*Optional*. *True*, if the message can't be forwarded"
          default: true
          type: boolean
        is_from_offline:
          description:
            '*Optional*. True, if the message was sent by an implicit action,
            for example, as an away or a greeting business message, or as a
            scheduled message'
          default: true
          type: boolean
        media_group_id:
          description:
            '*Optional*. The unique identifier of a media message group this
            message belongs to'
          type: string
        author_signature:
          description:
            '*Optional*. Signature of the post author for messages in channels,
            or the custom title of an anonymous group administrator'
          type: string
        text:
          description:
            '*Optional*. For text messages, the actual UTF-8 text of the message'
          type: string
        entities:
          description:
            '*Optional*. For text messages, special entities like usernames,
            URLs, bot commands, etc. that appear in the text'
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        link_preview_options:
          $ref: '#/components/schemas/LinkPreviewOptions'
        effect_id:
          description:
            '*Optional*. Unique identifier of the message effect added to the
            message'
          type: string
        animation:
          $ref: '#/components/schemas/Animation'
        audio:
          $ref: '#/components/schemas/Audio'
        document:
          $ref: '#/components/schemas/Document'
        paid_media:
          $ref: '#/components/schemas/PaidMediaInfo'
        photo:
          description:
            '*Optional*. Message is a photo, available sizes of the photo'
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
        sticker:
          $ref: '#/components/schemas/Sticker'
        story:
          $ref: '#/components/schemas/Story'
        video:
          $ref: '#/components/schemas/Video'
        video_note:
          $ref: '#/components/schemas/VideoNote'
        voice:
          $ref: '#/components/schemas/Voice'
        caption:
          description:
            '*Optional*. Caption for the animation, audio, document, paid media,
            photo, video or voice'
          type: string
        caption_entities:
          description:
            '*Optional*. For messages with a caption, special entities like
            usernames, URLs, bot commands, etc. that appear in the caption'
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. True, if the caption must be shown above the message
            media'
          default: true
          type: boolean
        has_media_spoiler:
          description:
            '*Optional*. *True*, if the message media is covered by a spoiler
            animation'
          default: true
          type: boolean
        contact:
          $ref: '#/components/schemas/Contact'
        dice:
          $ref: '#/components/schemas/Dice'
        game:
          $ref: '#/components/schemas/Game'
        poll:
          $ref: '#/components/schemas/Poll'
        venue:
          $ref: '#/components/schemas/Venue'
        location:
          $ref: '#/components/schemas/Location'
        new_chat_members:
          description:
            '*Optional*. New members that were added to the group or supergroup
            and information about them (the bot itself may be one of these
            members)'
          type: array
          items:
            $ref: '#/components/schemas/User'
        left_chat_member:
          $ref: '#/components/schemas/User'
        new_chat_title:
          description: '*Optional*. A chat title was changed to this value'
          type: string
        new_chat_photo:
          description: '*Optional*. A chat photo was change to this value'
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
        delete_chat_photo:
          description: '*Optional*. Service message: the chat photo was deleted'
          default: true
          type: boolean
        group_chat_created:
          description: '*Optional*. Service message: the group has been created'
          default: true
          type: boolean
        supergroup_chat_created:
          description:
            "*Optional*. Service message: the supergroup has been created. This
            field can't be received in a message coming through updates, because
            bot can't be a member of a supergroup when it is created. It can
            only be found in reply\\_to\\_message if someone replies to a very
            first message in a directly created supergroup."
          default: true
          type: boolean
        channel_chat_created:
          description:
            "*Optional*. Service message: the channel has been created. This
            field can't be received in a message coming through updates, because
            bot can't be a member of a channel when it is created. It can only
            be found in reply\\_to\\_message if someone replies to a very first
            message in a channel."
          default: true
          type: boolean
        message_auto_delete_timer_changed:
          $ref: '#/components/schemas/MessageAutoDeleteTimerChanged'
        migrate_to_chat_id:
          description:
            '*Optional*. The group has been migrated to a supergroup with the
            specified identifier. This number may have more than 32 significant
            bits and some programming languages may have difficulty/silent
            defects in interpreting it. But it has at most 52 significant bits,
            so a signed 64-bit integer or double-precision float type are safe
            for storing this identifier.'
          type: integer
        migrate_from_chat_id:
          description:
            '*Optional*. The supergroup has been migrated from a group with the
            specified identifier. This number may have more than 32 significant
            bits and some programming languages may have difficulty/silent
            defects in interpreting it. But it has at most 52 significant bits,
            so a signed 64-bit integer or double-precision float type are safe
            for storing this identifier.'
          type: integer
        pinned_message:
          $ref: '#/components/schemas/MaybeInaccessibleMessage'
        invoice:
          $ref: '#/components/schemas/Invoice'
        successful_payment:
          $ref: '#/components/schemas/SuccessfulPayment'
        refunded_payment:
          $ref: '#/components/schemas/RefundedPayment'
        users_shared:
          $ref: '#/components/schemas/UsersShared'
        chat_shared:
          $ref: '#/components/schemas/ChatShared'
        connected_website:
          description:
            '*Optional*. The domain name of the website on which the user has
            logged in. [More about Telegram Login
            »](https://core.telegram.org/widgets/login)'
          type: string
        write_access_allowed:
          $ref: '#/components/schemas/WriteAccessAllowed'
        passport_data:
          $ref: '#/components/schemas/PassportData'
        proximity_alert_triggered:
          $ref: '#/components/schemas/ProximityAlertTriggered'
        boost_added:
          $ref: '#/components/schemas/ChatBoostAdded'
        chat_background_set:
          $ref: '#/components/schemas/ChatBackground'
        forum_topic_created:
          $ref: '#/components/schemas/ForumTopicCreated'
        forum_topic_edited:
          $ref: '#/components/schemas/ForumTopicEdited'
        forum_topic_closed:
          $ref: '#/components/schemas/ForumTopicClosed'
        forum_topic_reopened:
          $ref: '#/components/schemas/ForumTopicReopened'
        general_forum_topic_hidden:
          $ref: '#/components/schemas/GeneralForumTopicHidden'
        general_forum_topic_unhidden:
          $ref: '#/components/schemas/GeneralForumTopicUnhidden'
        giveaway_created:
          $ref: '#/components/schemas/GiveawayCreated'
        giveaway:
          $ref: '#/components/schemas/Giveaway'
        giveaway_winners:
          $ref: '#/components/schemas/GiveawayWinners'
        giveaway_completed:
          $ref: '#/components/schemas/GiveawayCompleted'
        video_chat_scheduled:
          $ref: '#/components/schemas/VideoChatScheduled'
        video_chat_started:
          $ref: '#/components/schemas/VideoChatStarted'
        video_chat_ended:
          $ref: '#/components/schemas/VideoChatEnded'
        video_chat_participants_invited:
          $ref: '#/components/schemas/VideoChatParticipantsInvited'
        web_app_data:
          $ref: '#/components/schemas/WebAppData'
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
      required:
        - message_id
        - date
        - chat
    MessageId:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageid'
      description: This object represents a unique message identifier.
      type: object
      properties:
        message_id:
          description:
            'Unique message identifier. In specific instances (e.g., message
            containing a video sent to a big chat), the server might
            automatically schedule a message instead of sending it immediately.
            In such cases, this field will be 0 and the relevant message will be
            unusable until it is actually sent'
          type: integer
      required:
        - message_id
    InaccessibleMessage:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inaccessiblemessage'
      description:
        This object describes a message that was deleted or is otherwise
        inaccessible to the bot.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        message_id:
          description: Unique message identifier inside the chat
          type: integer
        date:
          description:
            Always 0. The field can be used to differentiate regular and
            inaccessible messages.
          type: integer
      required:
        - chat
        - message_id
        - date
    MaybeInaccessibleMessage:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#maybeinaccessiblemessage'
      description:
        "This object describes a message that can be inaccessible to the bot. It
        can be one of\n\n*
        [Message](https://core.telegram.org/bots/api/#message)\n*
        [InaccessibleMessage](https://core.telegram.org/bots/api/#inaccessiblemessage)"
      anyOf:
        - $ref: '#/components/schemas/Message'
        - $ref: '#/components/schemas/InaccessibleMessage'
    MessageEntity:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageentity'
      description:
        'This object represents one special entity in a text message. For
        example, hashtags, usernames, URLs, etc.'
      type: object
      properties:
        type:
          description:
            "Type of the entity. Currently, can be “mention” (`@username`),
            “hashtag” (`#hashtag` or `#hashtag@chatusername`), “cashtag” (`$USD`
            or `$USD@chatusername`), “bot\\_command” (`/start@jobs_bot`), “url”
            (`https://telegram.org`), “email” (`do-not-reply@telegram.org`),
            “phone\\_number” (`+1-212-555-0123`), “bold” (**bold text**),
            “italic” (*italic text*), “underline” (underlined text),
            “strikethrough” (strikethrough text), “spoiler” (spoiler message),
            “blockquote” (block quotation), “expandable\\_blockquote”
            (collapsed-by-default block quotation), “code” (monowidth string),
            “pre” (monowidth block), “text\\_link” (for clickable text URLs),
            “text\\_mention” (for users [without
            usernames](https://telegram.org/blog/edit#new-mentions)),
            “custom\\_emoji” (for inline custom emoji stickers)"
          type: string
          enum:
            - mention
            - hashtag
            - cashtag
            - bot_command
            - url
            - email
            - phone_number
            - bold
            - italic
            - underline
            - strikethrough
            - spoiler
            - blockquote
            - expandable_blockquote
            - code
            - pre
            - text_link
            - text_mention
            - custom_emoji
        offset:
          description:
            'Offset in [UTF-16 code
            units](https://core.telegram.org/api/entities#entity-length) to the
            start of the entity'
          type: integer
        length:
          description:
            'Length of the entity in [UTF-16 code
            units](https://core.telegram.org/api/entities#entity-length)'
          type: integer
        url:
          description:
            "*Optional*. For “text\\_link” only, URL that will be opened after
            user taps on the text"
          type: string
        user:
          $ref: '#/components/schemas/User'
        language:
          description:
            '*Optional*. For “pre” only, the programming language of the entity
            text'
          type: string
        custom_emoji_id:
          description:
            "*Optional*. For “custom\\_emoji” only, unique identifier of the
            custom emoji. Use
            [getCustomEmojiStickers](https://core.telegram.org/bots/api/#getcustomemojistickers)
            to get full information about the sticker"
          type: string
      required:
        - type
        - offset
        - length
    TextQuote:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#textquote'
      description:
        This object contains information about the quoted part of a message that
        is replied to by the given message.
      type: object
      properties:
        text:
          description:
            Text of the quoted part of a message that is replied to by the given
            message
          type: string
        entities:
          description:
            "*Optional*. Special entities that appear in the quote. Currently,
            only *bold*, *italic*, *underline*, *strikethrough*, *spoiler*, and
            *custom\\_emoji* entities are kept in quotes."
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        position:
          description:
            Approximate quote position in the original message in UTF-16 code
            units as specified by the sender
          type: integer
        is_manual:
          description:
            '*Optional*. True, if the quote was chosen manually by the message
            sender. Otherwise, the quote was added automatically by the server.'
          default: true
          type: boolean
      required:
        - text
        - position
    ExternalReplyInfo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#externalreplyinfo'
      description:
        'This object contains information about a message that is being replied
        to, which may come from another chat or forum topic.'
      type: object
      properties:
        origin:
          $ref: '#/components/schemas/MessageOrigin'
        chat:
          $ref: '#/components/schemas/Chat'
        message_id:
          description:
            '*Optional*. Unique message identifier inside the original chat.
            Available only if the original chat is a supergroup or a channel.'
          type: integer
        link_preview_options:
          $ref: '#/components/schemas/LinkPreviewOptions'
        animation:
          $ref: '#/components/schemas/Animation'
        audio:
          $ref: '#/components/schemas/Audio'
        document:
          $ref: '#/components/schemas/Document'
        paid_media:
          $ref: '#/components/schemas/PaidMediaInfo'
        photo:
          description:
            '*Optional*. Message is a photo, available sizes of the photo'
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
        sticker:
          $ref: '#/components/schemas/Sticker'
        story:
          $ref: '#/components/schemas/Story'
        video:
          $ref: '#/components/schemas/Video'
        video_note:
          $ref: '#/components/schemas/VideoNote'
        voice:
          $ref: '#/components/schemas/Voice'
        has_media_spoiler:
          description:
            '*Optional*. *True*, if the message media is covered by a spoiler
            animation'
          default: true
          type: boolean
        contact:
          $ref: '#/components/schemas/Contact'
        dice:
          $ref: '#/components/schemas/Dice'
        game:
          $ref: '#/components/schemas/Game'
        giveaway:
          $ref: '#/components/schemas/Giveaway'
        giveaway_winners:
          $ref: '#/components/schemas/GiveawayWinners'
        invoice:
          $ref: '#/components/schemas/Invoice'
        location:
          $ref: '#/components/schemas/Location'
        poll:
          $ref: '#/components/schemas/Poll'
        venue:
          $ref: '#/components/schemas/Venue'
      required:
        - origin
    ReplyParameters:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#replyparameters'
      description:
        Describes reply parameters for the message that is being sent.
      type: object
      properties:
        message_id:
          description:
            "Identifier of the message that will be replied to in the current
            chat, or in the chat *chat\\_id* if it is specified"
          type: integer
        chat_id:
          description:
            '*Optional*. If the message to be replied to is from a different
            chat, unique identifier for the chat or username of the channel (in
            the format `@channelusername`). Not supported for messages sent on
            behalf of a business account.'
          anyOf:
            - type: integer
            - type: string
        allow_sending_without_reply:
          description:
            '*Optional*. Pass *True* if the message should be sent even if the
            specified message to be replied to is not found. Always *False* for
            replies in another chat or forum topic. Always *True* for messages
            sent on behalf of a business account.'
          type: boolean
        quote:
          description:
            "*Optional*. Quoted part of the message to be replied to; 0-1024
            characters after entities parsing. The quote must be an exact
            substring of the message to be replied to, including *bold*,
            *italic*, *underline*, *strikethrough*, *spoiler*, and
            *custom\\_emoji* entities. The message will fail to send if the
            quote isn't found in the original message."
          type: string
          minLength: 0
          maxLength: 1024
        quote_parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the quote. See [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        quote_entities:
          description:
            "*Optional*. A JSON-serialized list of special entities that appear
            in the quote. It can be specified instead of *quote\\_parse\\_mode*."
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        quote_position:
          description:
            '*Optional*. Position of the quote in the original message in UTF-16
            code units'
          type: integer
      required:
        - message_id
    MessageOrigin:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageorigin'
      description:
        "This object describes the origin of a message. It can be one of\n\n*
        [MessageOriginUser](https://core.telegram.org/bots/api/#messageoriginuser)\n*
        [MessageOriginHiddenUser](https://core.telegram.org/bots/api/#messageoriginhiddenuser)\n*
        [MessageOriginChat](https://core.telegram.org/bots/api/#messageoriginchat)\n*
        [MessageOriginChannel](https://core.telegram.org/bots/api/#messageoriginchannel)"
      anyOf:
        - $ref: '#/components/schemas/MessageOriginUser'
        - $ref: '#/components/schemas/MessageOriginHiddenUser'
        - $ref: '#/components/schemas/MessageOriginChat'
        - $ref: '#/components/schemas/MessageOriginChannel'
    MessageOriginUser:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageoriginuser'
      description: The message was originally sent by a known user.
      type: object
      properties:
        type:
          description: 'Type of the message origin, always “user”'
          default: user
          type: string
        date:
          description: Date the message was sent originally in Unix time
          type: integer
        sender_user:
          $ref: '#/components/schemas/User'
      required:
        - type
        - date
        - sender_user
    MessageOriginHiddenUser:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageoriginhiddenuser'
      description: The message was originally sent by an unknown user.
      type: object
      properties:
        type:
          description: "Type of the message origin, always “hidden\\_user”"
          default: hidden_user
          type: string
        date:
          description: Date the message was sent originally in Unix time
          type: integer
        sender_user_name:
          description: Name of the user that sent the message originally
          type: string
      required:
        - type
        - date
        - sender_user_name
    MessageOriginChat:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageoriginchat'
      description:
        The message was originally sent on behalf of a chat to a group chat.
      type: object
      properties:
        type:
          description: 'Type of the message origin, always “chat”'
          default: chat
          type: string
        date:
          description: Date the message was sent originally in Unix time
          type: integer
        sender_chat:
          $ref: '#/components/schemas/Chat'
        author_signature:
          description:
            '*Optional*. For messages originally sent by an anonymous chat
            administrator, original message author signature'
          type: string
      required:
        - type
        - date
        - sender_chat
    MessageOriginChannel:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageoriginchannel'
      description: The message was originally sent to a channel chat.
      type: object
      properties:
        type:
          description: 'Type of the message origin, always “channel”'
          default: channel
          type: string
        date:
          description: Date the message was sent originally in Unix time
          type: integer
        chat:
          $ref: '#/components/schemas/Chat'
        message_id:
          description: Unique message identifier inside the chat
          type: integer
        author_signature:
          description: '*Optional*. Signature of the original post author'
          type: string
      required:
        - type
        - date
        - chat
        - message_id
    PhotoSize:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#photosize'
      description:
        'This object represents one size of a photo or a
        [file](https://core.telegram.org/bots/api/#document) /
        [sticker](https://core.telegram.org/bots/api/#sticker) thumbnail.'
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        width:
          description: Photo width
          type: integer
        height:
          description: Photo height
          type: integer
        file_size:
          description: '*Optional*. File size in bytes'
          type: integer
      required:
        - file_id
        - file_unique_id
        - width
        - height
    Animation:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#animation'
      description:
        This object represents an animation file (GIF or H.264/MPEG-4 AVC video
        without sound).
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        width:
          description: Video width as defined by the sender
          type: integer
        height:
          description: Video height as defined by the sender
          type: integer
        duration:
          description: Duration of the video in seconds as defined by the sender
          type: integer
        thumbnail:
          $ref: '#/components/schemas/PhotoSize'
        file_name:
          description:
            '*Optional*. Original animation filename as defined by the sender'
          type: string
        mime_type:
          description:
            '*Optional*. MIME type of the file as defined by the sender'
          type: string
        file_size:
          description:
            '*Optional*. File size in bytes. It can be bigger than 2^31 and some
            programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a signed
            64-bit integer or double-precision float type are safe for storing
            this value.'
          type: integer
      required:
        - file_id
        - file_unique_id
        - width
        - height
        - duration
    Audio:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#audio'
      description:
        This object represents an audio file to be treated as music by the
        Telegram clients.
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        duration:
          description: Duration of the audio in seconds as defined by the sender
          type: integer
        performer:
          description:
            '*Optional*. Performer of the audio as defined by the sender or by
            audio tags'
          type: string
        title:
          description:
            '*Optional*. Title of the audio as defined by the sender or by audio
            tags'
          type: string
        file_name:
          description: '*Optional*. Original filename as defined by the sender'
          type: string
        mime_type:
          description:
            '*Optional*. MIME type of the file as defined by the sender'
          type: string
        file_size:
          description:
            '*Optional*. File size in bytes. It can be bigger than 2^31 and some
            programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a signed
            64-bit integer or double-precision float type are safe for storing
            this value.'
          type: integer
        thumbnail:
          $ref: '#/components/schemas/PhotoSize'
      required:
        - file_id
        - file_unique_id
        - duration
    Document:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#document'
      description:
        'This object represents a general file (as opposed to
        [photos](https://core.telegram.org/bots/api/#photosize), [voice
        messages](https://core.telegram.org/bots/api/#voice) and [audio
        files](https://core.telegram.org/bots/api/#audio)).'
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        thumbnail:
          $ref: '#/components/schemas/PhotoSize'
        file_name:
          description: '*Optional*. Original filename as defined by the sender'
          type: string
        mime_type:
          description:
            '*Optional*. MIME type of the file as defined by the sender'
          type: string
        file_size:
          description:
            '*Optional*. File size in bytes. It can be bigger than 2^31 and some
            programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a signed
            64-bit integer or double-precision float type are safe for storing
            this value.'
          type: integer
      required:
        - file_id
        - file_unique_id
    Story:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#story'
      description: This object represents a story.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        id:
          description: Unique identifier for the story in the chat
          type: integer
      required:
        - chat
        - id
    Video:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#video'
      description: This object represents a video file.
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        width:
          description: Video width as defined by the sender
          type: integer
        height:
          description: Video height as defined by the sender
          type: integer
        duration:
          description: Duration of the video in seconds as defined by the sender
          type: integer
        thumbnail:
          $ref: '#/components/schemas/PhotoSize'
        cover:
          description:
            '*Optional*. Available sizes of the cover of the video in the
            message'
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
        start_timestamp:
          description:
            '*Optional*. Timestamp in seconds from which the video will play in
            the message'
          type: integer
        file_name:
          description: '*Optional*. Original filename as defined by the sender'
          type: string
        mime_type:
          description:
            '*Optional*. MIME type of the file as defined by the sender'
          type: string
        file_size:
          description:
            '*Optional*. File size in bytes. It can be bigger than 2^31 and some
            programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a signed
            64-bit integer or double-precision float type are safe for storing
            this value.'
          type: integer
      required:
        - file_id
        - file_unique_id
        - width
        - height
        - duration
    VideoNote:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#videonote'
      description:
        'This object represents a [video
        message](https://telegram.org/blog/video-messages-and-telescope)
        (available in Telegram apps as of
        [v.4.0](https://telegram.org/blog/video-messages-and-telescope)).'
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        length:
          description:
            Video width and height (diameter of the video message) as defined by
            the sender
          type: integer
        duration:
          description: Duration of the video in seconds as defined by the sender
          type: integer
        thumbnail:
          $ref: '#/components/schemas/PhotoSize'
        file_size:
          description: '*Optional*. File size in bytes'
          type: integer
      required:
        - file_id
        - file_unique_id
        - length
        - duration
    Voice:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#voice'
      description: This object represents a voice note.
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        duration:
          description: Duration of the audio in seconds as defined by the sender
          type: integer
        mime_type:
          description:
            '*Optional*. MIME type of the file as defined by the sender'
          type: string
        file_size:
          description:
            '*Optional*. File size in bytes. It can be bigger than 2^31 and some
            programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a signed
            64-bit integer or double-precision float type are safe for storing
            this value.'
          type: integer
      required:
        - file_id
        - file_unique_id
        - duration
    PaidMediaInfo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#paidmediainfo'
      description: Describes the paid media added to a message.
      type: object
      properties:
        star_count:
          description:
            The number of Telegram Stars that must be paid to buy access to the
            media
          type: integer
        paid_media:
          description: Information about the paid media
          type: array
          items:
            $ref: '#/components/schemas/PaidMedia'
      required:
        - star_count
        - paid_media
    PaidMedia:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#paidmedia'
      description:
        "This object describes paid media. Currently, it can be one of\n\n*
        [PaidMediaPreview](https://core.telegram.org/bots/api/#paidmediapreview)\n*
        [PaidMediaPhoto](https://core.telegram.org/bots/api/#paidmediaphoto)\n*
        [PaidMediaVideo](https://core.telegram.org/bots/api/#paidmediavideo)"
      anyOf:
        - $ref: '#/components/schemas/PaidMediaPreview'
        - $ref: '#/components/schemas/PaidMediaPhoto'
        - $ref: '#/components/schemas/PaidMediaVideo'
    PaidMediaPreview:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#paidmediapreview'
      description: "The paid media isn't available before the payment."
      type: object
      properties:
        type:
          description: 'Type of the paid media, always “preview”'
          default: preview
          type: string
        width:
          description: '*Optional*. Media width as defined by the sender'
          type: integer
        height:
          description: '*Optional*. Media height as defined by the sender'
          type: integer
        duration:
          description:
            '*Optional*. Duration of the media in seconds as defined by the
            sender'
          type: integer
      required:
        - type
    PaidMediaPhoto:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#paidmediaphoto'
      description: The paid media is a photo.
      type: object
      properties:
        type:
          description: 'Type of the paid media, always “photo”'
          default: photo
          type: string
        photo:
          description: The photo
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
      required:
        - type
        - photo
    PaidMediaVideo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#paidmediavideo'
      description: The paid media is a video.
      type: object
      properties:
        type:
          description: 'Type of the paid media, always “video”'
          default: video
          type: string
        video:
          $ref: '#/components/schemas/Video'
      required:
        - type
        - video
    Contact:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#contact'
      description: This object represents a phone contact.
      type: object
      properties:
        phone_number:
          description: "Contact's phone number"
          type: string
        first_name:
          description: "Contact's first name"
          type: string
        last_name:
          description: "*Optional*. Contact's last name"
          type: string
        user_id:
          description:
            "*Optional*. Contact's user identifier in Telegram. This number may
            have more than 32 significant bits and some programming languages
            may have difficulty/silent defects in interpreting it. But it has at
            most 52 significant bits, so a 64-bit integer or double-precision
            float type are safe for storing this identifier."
          type: integer
        vcard:
          description:
            '*Optional*. Additional data about the contact in the form of a
            [vCard](https://en.wikipedia.org/wiki/VCard)'
          type: string
      required:
        - phone_number
        - first_name
    Dice:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#dice'
      description:
        This object represents an animated emoji that displays a random value.
      type: object
      properties:
        emoji:
          description: Emoji on which the dice throw animation is based
          type: string
        value:
          description:
            'Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for
            “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji'
          type: integer
      required:
        - emoji
        - value
    PollOption:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#polloption'
      description:
        This object contains information about one answer option in a poll.
      type: object
      properties:
        text:
          description: 'Option text, 1-100 characters'
          type: string
          minLength: 1
          maxLength: 100
        text_entities:
          description:
            '*Optional*. Special entities that appear in the option *text*.
            Currently, only custom emoji entities are allowed in poll option
            texts'
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        voter_count:
          description: Number of users that voted for this option
          type: integer
      required:
        - text
        - voter_count
    InputPollOption:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputpolloption'
      description:
        This object contains information about one answer option in a poll to be
        sent.
      type: object
      properties:
        text:
          description: 'Option text, 1-100 characters'
          type: string
          minLength: 1
          maxLength: 100
        text_parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the text. See [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details. Currently, only custom emoji entities are allowed'
          type: string
        text_entities:
          description:
            "*Optional*. A JSON-serialized list of special entities that appear
            in the poll option text. It can be specified instead of
            *text\\_parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
      required:
        - text
    PollAnswer:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#pollanswer'
      description:
        This object represents an answer of a user in a non-anonymous poll.
      type: object
      properties:
        poll_id:
          description: Unique poll identifier
          type: string
        voter_chat:
          $ref: '#/components/schemas/Chat'
        user:
          $ref: '#/components/schemas/User'
        option_ids:
          description:
            0-based identifiers of chosen answer options. May be empty if the
            vote was retracted.
          type: array
          items:
            type: integer
      required:
        - poll_id
        - option_ids
    Poll:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#poll'
      description: This object contains information about a poll.
      type: object
      properties:
        id:
          description: Unique poll identifier
          type: string
        question:
          description: 'Poll question, 1-300 characters'
          type: string
          minLength: 1
          maxLength: 300
        question_entities:
          description:
            '*Optional*. Special entities that appear in the *question*.
            Currently, only custom emoji entities are allowed in poll questions'
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        options:
          description: List of poll options
          type: array
          items:
            $ref: '#/components/schemas/PollOption'
        total_voter_count:
          description: Total number of users that voted in the poll
          type: integer
        is_closed:
          description: '*True*, if the poll is closed'
          type: boolean
        is_anonymous:
          description: '*True*, if the poll is anonymous'
          type: boolean
        type:
          description: 'Poll type, currently can be “regular” or “quiz”'
          type: string
          enum:
            - regular
            - quiz
        allows_multiple_answers:
          description: '*True*, if the poll allows multiple answers'
          type: boolean
        correct_option_id:
          description:
            '*Optional*. 0-based identifier of the correct answer option.
            Available only for polls in the quiz mode, which are closed, or was
            sent (not forwarded) by the bot or to the private chat with the bot.'
          type: integer
        explanation:
          description:
            '*Optional*. Text that is shown when a user chooses an incorrect
            answer or taps on the lamp icon in a quiz-style poll, 0-200
            characters'
          type: string
          minLength: 0
          maxLength: 200
        explanation_entities:
          description:
            '*Optional*. Special entities like usernames, URLs, bot commands,
            etc. that appear in the *explanation*'
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        open_period:
          description:
            '*Optional*. Amount of time in seconds the poll will be active after
            creation'
          type: integer
        close_date:
          description:
            '*Optional*. Point in time (Unix timestamp) when the poll will be
            automatically closed'
          type: integer
      required:
        - id
        - question
        - options
        - total_voter_count
        - is_closed
        - is_anonymous
        - type
        - allows_multiple_answers
    Location:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#location'
      description: This object represents a point on the map.
      type: object
      properties:
        latitude:
          description: Latitude as defined by the sender
          type: number
        longitude:
          description: Longitude as defined by the sender
          type: number
        horizontal_accuracy:
          description:
            '*Optional*. The radius of uncertainty for the location, measured in
            meters; 0-1500'
          type: number
        live_period:
          description:
            '*Optional*. Time relative to the message sending date, during which
            the location can be updated; in seconds. For active live locations
            only.'
          type: integer
        heading:
          description:
            '*Optional*. The direction in which user is moving, in degrees;
            1-360. For active live locations only.'
          type: integer
        proximity_alert_radius:
          description:
            '*Optional*. The maximum distance for proximity alerts about
            approaching another chat member, in meters. For sent live locations
            only.'
          type: integer
      required:
        - latitude
        - longitude
    Venue:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#venue'
      description: This object represents a venue.
      type: object
      properties:
        location:
          $ref: '#/components/schemas/Location'
        title:
          description: Name of the venue
          type: string
        address:
          description: Address of the venue
          type: string
        foursquare_id:
          description: '*Optional*. Foursquare identifier of the venue'
          type: string
        foursquare_type:
          description:
            "*Optional*. Foursquare type of the venue. (For example,
            “arts\\_entertainment/default”, “arts\\_entertainment/aquarium” or
            “food/icecream”.)"
          type: string
        google_place_id:
          description: '*Optional*. Google Places identifier of the venue'
          type: string
        google_place_type:
          description:
            '*Optional*. Google Places type of the venue. (See [supported
            types](https://developers.google.com/places/web-service/supported_types).)'
          type: string
      required:
        - location
        - title
        - address
    WebAppData:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#webappdata'
      description:
        'Describes data sent from a [Web
        App](https://core.telegram.org/bots/webapps) to the bot.'
      type: object
      properties:
        data:
          description:
            The data. Be aware that a bad client can send arbitrary data in this
            field.
          type: string
        button_text:
          description:
            "Text of the *web\\_app* keyboard button from which the Web App was
            opened. Be aware that a bad client can send arbitrary data in this
            field."
          type: string
      required:
        - data
        - button_text
    ProximityAlertTriggered:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#proximityalerttriggered'
      description:
        'This object represents the content of a service message, sent whenever
        a user in the chat triggers a proximity alert set by another user.'
      type: object
      properties:
        traveler:
          $ref: '#/components/schemas/User'
        watcher:
          $ref: '#/components/schemas/User'
        distance:
          description: The distance between the users
          type: integer
      required:
        - traveler
        - watcher
        - distance
    MessageAutoDeleteTimerChanged:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messageautodeletetimerchanged'
      description:
        This object represents a service message about a change in auto-delete
        timer settings.
      type: object
      properties:
        message_auto_delete_time:
          description: New auto-delete time for messages in the chat; in seconds
          type: integer
      required:
        - message_auto_delete_time
    ChatBoostAdded:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboostadded'
      description:
        This object represents a service message about a user boosting a chat.
      type: object
      properties:
        boost_count:
          description: Number of boosts added by the user
          type: integer
      required:
        - boost_count
    BackgroundFill:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundfill'
      description:
        "This object describes the way a background is filled based on the
        selected colors. Currently, it can be one of\n\n*
        [BackgroundFillSolid](https://core.telegram.org/bots/api/#backgroundfillsolid)\n*
        [BackgroundFillGradient](https://core.telegram.org/bots/api/#backgroundfillgradient)\n*
        [BackgroundFillFreeformGradient](https://core.telegram.org/bots/api/#backgroundfillfreeformgradient)"
      anyOf:
        - $ref: '#/components/schemas/BackgroundFillSolid'
        - $ref: '#/components/schemas/BackgroundFillGradient'
        - $ref: '#/components/schemas/BackgroundFillFreeformGradient'
    BackgroundFillSolid:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundfillsolid'
      description: The background is filled using the selected color.
      type: object
      properties:
        type:
          description: 'Type of the background fill, always “solid”'
          default: solid
          type: string
        color:
          description: The color of the background fill in the RGB24 format
          type: integer
      required:
        - type
        - color
    BackgroundFillGradient:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundfillgradient'
      description: The background is a gradient fill.
      type: object
      properties:
        type:
          description: 'Type of the background fill, always “gradient”'
          default: gradient
          type: string
        top_color:
          description: Top color of the gradient in the RGB24 format
          type: integer
        bottom_color:
          description: Bottom color of the gradient in the RGB24 format
          type: integer
        rotation_angle:
          description:
            Clockwise rotation angle of the background fill in degrees; 0-359
          type: integer
      required:
        - type
        - top_color
        - bottom_color
        - rotation_angle
    BackgroundFillFreeformGradient:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundfillfreeformgradient'
      description:
        The background is a freeform gradient that rotates after every message
        in the chat.
      type: object
      properties:
        type:
          description:
            "Type of the background fill, always “freeform\\_gradient”"
          default: freeform_gradient
          type: string
        colors:
          description:
            A list of the 3 or 4 base colors that are used to generate the
            freeform gradient in the RGB24 format
          type: array
          items:
            type: integer
      required:
        - type
        - colors
    BackgroundType:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundtype'
      description:
        "This object describes the type of a background. Currently, it can be
        one of\n\n*
        [BackgroundTypeFill](https://core.telegram.org/bots/api/#backgroundtypefill)\n*
        [BackgroundTypeWallpaper](https://core.telegram.org/bots/api/#backgroundtypewallpaper)\n*
        [BackgroundTypePattern](https://core.telegram.org/bots/api/#backgroundtypepattern)\n*
        [BackgroundTypeChatTheme](https://core.telegram.org/bots/api/#backgroundtypechattheme)"
      anyOf:
        - $ref: '#/components/schemas/BackgroundTypeFill'
        - $ref: '#/components/schemas/BackgroundTypeWallpaper'
        - $ref: '#/components/schemas/BackgroundTypePattern'
        - $ref: '#/components/schemas/BackgroundTypeChatTheme'
    BackgroundTypeFill:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundtypefill'
      description:
        The background is automatically filled based on the selected colors.
      type: object
      properties:
        type:
          description: 'Type of the background, always “fill”'
          default: fill
          type: string
        fill:
          $ref: '#/components/schemas/BackgroundFill'
        dark_theme_dimming:
          description:
            'Dimming of the background in dark themes, as a percentage; 0-100'
          type: integer
      required:
        - type
        - fill
        - dark_theme_dimming
    BackgroundTypeWallpaper:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundtypewallpaper'
      description: The background is a wallpaper in the JPEG format.
      type: object
      properties:
        type:
          description: 'Type of the background, always “wallpaper”'
          default: wallpaper
          type: string
        document:
          $ref: '#/components/schemas/Document'
        dark_theme_dimming:
          description:
            'Dimming of the background in dark themes, as a percentage; 0-100'
          type: integer
        is_blurred:
          description:
            '*Optional*. *True*, if the wallpaper is downscaled to fit in a
            450x450 square and then box-blurred with radius 12'
          default: true
          type: boolean
        is_moving:
          description:
            '*Optional*. *True*, if the background moves slightly when the
            device is tilted'
          default: true
          type: boolean
      required:
        - type
        - document
        - dark_theme_dimming
    BackgroundTypePattern:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundtypepattern'
      description:
        The background is a .PNG or .TGV (gzipped subset of SVG with MIME type
        “application/x-tgwallpattern”) pattern to be combined with the
        background fill chosen by the user.
      type: object
      properties:
        type:
          description: 'Type of the background, always “pattern”'
          default: pattern
          type: string
        document:
          $ref: '#/components/schemas/Document'
        fill:
          $ref: '#/components/schemas/BackgroundFill'
        intensity:
          description:
            Intensity of the pattern when it is shown above the filled
            background; 0-100
          type: integer
        is_inverted:
          description:
            '*Optional*. *True*, if the background fill must be applied only to
            the pattern itself. All other pixels are black in this case. For
            dark themes only'
          default: true
          type: boolean
        is_moving:
          description:
            '*Optional*. *True*, if the background moves slightly when the
            device is tilted'
          default: true
          type: boolean
      required:
        - type
        - document
        - fill
        - intensity
    BackgroundTypeChatTheme:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#backgroundtypechattheme'
      description: The background is taken directly from a built-in chat theme.
      type: object
      properties:
        type:
          description: "Type of the background, always “chat\\_theme”"
          default: chat_theme
          type: string
        theme_name:
          description: 'Name of the chat theme, which is usually an emoji'
          type: string
      required:
        - type
        - theme_name
    ChatBackground:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatbackground'
      description: This object represents a chat background.
      type: object
      properties:
        type:
          $ref: '#/components/schemas/BackgroundType'
      required:
        - type
    ForumTopicCreated:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forumtopiccreated'
      description:
        This object represents a service message about a new forum topic created
        in the chat.
      type: object
      properties:
        name:
          description: Name of the topic
          type: string
        icon_color:
          description: Color of the topic icon in RGB format
          type: integer
        icon_custom_emoji_id:
          description:
            '*Optional*. Unique identifier of the custom emoji shown as the
            topic icon'
          type: string
      required:
        - name
        - icon_color
    ForumTopicClosed:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forumtopicclosed'
      description:
        This object represents a service message about a forum topic closed in
        the chat. Currently holds no information.
    ForumTopicEdited:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forumtopicedited'
      description:
        This object represents a service message about an edited forum topic.
      type: object
      properties:
        name:
          description: '*Optional*. New name of the topic, if it was edited'
          type: string
        icon_custom_emoji_id:
          description:
            '*Optional*. New identifier of the custom emoji shown as the topic
            icon, if it was edited; an empty string if the icon was removed'
          type: string
    ForumTopicReopened:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forumtopicreopened'
      description:
        This object represents a service message about a forum topic reopened in
        the chat. Currently holds no information.
    GeneralForumTopicHidden:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#generalforumtopichidden'
      description:
        This object represents a service message about General forum topic
        hidden in the chat. Currently holds no information.
    GeneralForumTopicUnhidden:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#generalforumtopicunhidden'
      description:
        This object represents a service message about General forum topic
        unhidden in the chat. Currently holds no information.
    SharedUser:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#shareduser'
      description:
        'This object contains information about a user that was shared with the
        bot using a
        [KeyboardButtonRequestUsers](https://core.telegram.org/bots/api/#keyboardbuttonrequestusers)
        button.'
      type: object
      properties:
        user_id:
          description:
            'Identifier of the shared user. This number may have more than 32
            significant bits and some programming languages may have
            difficulty/silent defects in interpreting it. But it has at most 52
            significant bits, so 64-bit integers or double-precision float types
            are safe for storing these identifiers. The bot may not have access
            to the user and could be unable to use this identifier, unless the
            user is already known to the bot by some other means.'
          type: integer
        first_name:
          description:
            '*Optional*. First name of the user, if the name was requested by
            the bot'
          type: string
        last_name:
          description:
            '*Optional*. Last name of the user, if the name was requested by the
            bot'
          type: string
        username:
          description:
            '*Optional*. Username of the user, if the username was requested by
            the bot'
          type: string
        photo:
          description:
            '*Optional*. Available sizes of the chat photo, if the photo was
            requested by the bot'
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
      required:
        - user_id
    UsersShared:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#usersshared'
      description:
        'This object contains information about the users whose identifiers were
        shared with the bot using a
        [KeyboardButtonRequestUsers](https://core.telegram.org/bots/api/#keyboardbuttonrequestusers)
        button.'
      type: object
      properties:
        request_id:
          description: Identifier of the request
          type: integer
        users:
          description: Information about users shared with the bot.
          type: array
          items:
            $ref: '#/components/schemas/SharedUser'
      required:
        - request_id
        - users
    ChatShared:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatshared'
      description:
        'This object contains information about a chat that was shared with the
        bot using a
        [KeyboardButtonRequestChat](https://core.telegram.org/bots/api/#keyboardbuttonrequestchat)
        button.'
      type: object
      properties:
        request_id:
          description: Identifier of the request
          type: integer
        chat_id:
          description:
            'Identifier of the shared chat. This number may have more than 32
            significant bits and some programming languages may have
            difficulty/silent defects in interpreting it. But it has at most 52
            significant bits, so a 64-bit integer or double-precision float type
            are safe for storing this identifier. The bot may not have access to
            the chat and could be unable to use this identifier, unless the chat
            is already known to the bot by some other means.'
          type: integer
        title:
          description:
            '*Optional*. Title of the chat, if the title was requested by the
            bot.'
          type: string
        username:
          description:
            '*Optional*. Username of the chat, if the username was requested by
            the bot and available.'
          type: string
        photo:
          description:
            '*Optional*. Available sizes of the chat photo, if the photo was
            requested by the bot'
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
      required:
        - request_id
        - chat_id
    WriteAccessAllowed:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#writeaccessallowed'
      description:
        'This object represents a service message about a user allowing a bot to
        write messages after adding it to the attachment menu, launching a Web
        App from a link, or accepting an explicit request from a Web App sent by
        the method
        [requestWriteAccess](https://core.telegram.org/bots/webapps#initializing-mini-apps).'
      type: object
      properties:
        from_request:
          description:
            '*Optional*. True, if the access was granted after the user accepted
            an explicit request from a Web App sent by the method
            [requestWriteAccess](https://core.telegram.org/bots/webapps#initializing-mini-apps)'
          type: boolean
        web_app_name:
          description:
            '*Optional*. Name of the Web App, if the access was granted when the
            Web App was launched from a link'
          type: string
        from_attachment_menu:
          description:
            '*Optional*. True, if the access was granted when the bot was added
            to the attachment or side menu'
          type: boolean
    VideoChatScheduled:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#videochatscheduled'
      description:
        This object represents a service message about a video chat scheduled in
        the chat.
      type: object
      properties:
        start_date:
          description:
            Point in time (Unix timestamp) when the video chat is supposed to be
            started by a chat administrator
          type: integer
      required:
        - start_date
    VideoChatStarted:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#videochatstarted'
      description:
        This object represents a service message about a video chat started in
        the chat. Currently holds no information.
    VideoChatEnded:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#videochatended'
      description:
        This object represents a service message about a video chat ended in the
        chat.
      type: object
      properties:
        duration:
          description: Video chat duration in seconds
          type: integer
      required:
        - duration
    VideoChatParticipantsInvited:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#videochatparticipantsinvited'
      description:
        This object represents a service message about new members invited to a
        video chat.
      type: object
      properties:
        users:
          description: New members that were invited to the video chat
          type: array
          items:
            $ref: '#/components/schemas/User'
      required:
        - users
    GiveawayCreated:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#giveawaycreated'
      description:
        This object represents a service message about the creation of a
        scheduled giveaway.
      type: object
      properties:
        prize_star_count:
          description:
            '*Optional*. The number of Telegram Stars to be split between
            giveaway winners; for Telegram Star giveaways only'
          type: integer
    Giveaway:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#giveaway'
      description: This object represents a message about a scheduled giveaway.
      type: object
      properties:
        chats:
          description:
            The list of chats which the user must join to participate in the
            giveaway
          type: array
          items:
            $ref: '#/components/schemas/Chat'
        winners_selection_date:
          description:
            Point in time (Unix timestamp) when winners of the giveaway will be
            selected
          type: integer
        winner_count:
          description:
            The number of users which are supposed to be selected as winners of
            the giveaway
          type: integer
        only_new_members:
          description:
            '*Optional*. *True*, if only users who join the chats after the
            giveaway started should be eligible to win'
          default: true
          type: boolean
        has_public_winners:
          description:
            '*Optional*. *True*, if the list of giveaway winners will be visible
            to everyone'
          default: true
          type: boolean
        prize_description:
          description: '*Optional*. Description of additional giveaway prize'
          type: string
        country_codes:
          description:
            '*Optional*. A list of two-letter [ISO 3166-1
            alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country
            codes indicating the countries from which eligible users for the
            giveaway must come. If empty, then all users can participate in the
            giveaway. Users with a phone number that was bought on Fragment can
            always participate in giveaways.'
          type: array
          items:
            type: string
        prize_star_count:
          description:
            '*Optional*. The number of Telegram Stars to be split between
            giveaway winners; for Telegram Star giveaways only'
          type: integer
        premium_subscription_month_count:
          description:
            '*Optional*. The number of months the Telegram Premium subscription
            won from the giveaway will be active for; for Telegram Premium
            giveaways only'
          type: integer
      required:
        - chats
        - winners_selection_date
        - winner_count
    GiveawayWinners:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#giveawaywinners'
      description:
        This object represents a message about the completion of a giveaway with
        public winners.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        giveaway_message_id:
          description: Identifier of the message with the giveaway in the chat
          type: integer
        winners_selection_date:
          description:
            Point in time (Unix timestamp) when winners of the giveaway were
            selected
          type: integer
        winner_count:
          description: Total number of winners in the giveaway
          type: integer
        winners:
          description: List of up to 100 winners of the giveaway
          type: array
          items:
            $ref: '#/components/schemas/User'
        additional_chat_count:
          description:
            '*Optional*. The number of other chats the user had to join in order
            to be eligible for the giveaway'
          type: integer
        prize_star_count:
          description:
            '*Optional*. The number of Telegram Stars that were split between
            giveaway winners; for Telegram Star giveaways only'
          type: integer
        premium_subscription_month_count:
          description:
            '*Optional*. The number of months the Telegram Premium subscription
            won from the giveaway will be active for; for Telegram Premium
            giveaways only'
          type: integer
        unclaimed_prize_count:
          description: '*Optional*. Number of undistributed prizes'
          type: integer
        only_new_members:
          description:
            '*Optional*. *True*, if only users who had joined the chats after
            the giveaway started were eligible to win'
          default: true
          type: boolean
        was_refunded:
          description:
            '*Optional*. *True*, if the giveaway was canceled because the
            payment for it was refunded'
          default: true
          type: boolean
        prize_description:
          description: '*Optional*. Description of additional giveaway prize'
          type: string
      required:
        - chat
        - giveaway_message_id
        - winners_selection_date
        - winner_count
        - winners
    GiveawayCompleted:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#giveawaycompleted'
      description:
        This object represents a service message about the completion of a
        giveaway without public winners.
      type: object
      properties:
        winner_count:
          description: Number of winners in the giveaway
          type: integer
        unclaimed_prize_count:
          description: '*Optional*. Number of undistributed prizes'
          type: integer
        giveaway_message:
          $ref: '#/components/schemas/Message'
        is_star_giveaway:
          description:
            '*Optional*. *True*, if the giveaway is a Telegram Star giveaway.
            Otherwise, currently, the giveaway is a Telegram Premium giveaway.'
          default: true
          type: boolean
      required:
        - winner_count
    LinkPreviewOptions:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#linkpreviewoptions'
      description: Describes the options used for link preview generation.
      type: object
      properties:
        is_disabled:
          description: '*Optional*. *True*, if the link preview is disabled'
          type: boolean
        url:
          description:
            '*Optional*. URL to use for the link preview. If empty, then the
            first URL found in the message text will be used'
          type: string
        prefer_small_media:
          description:
            "*Optional*. *True*, if the media in the link preview is supposed to
            be shrunk; ignored if the URL isn't explicitly specified or media
            size change isn't supported for the preview"
          type: boolean
        prefer_large_media:
          description:
            "*Optional*. *True*, if the media in the link preview is supposed to
            be enlarged; ignored if the URL isn't explicitly specified or media
            size change isn't supported for the preview"
          type: boolean
        show_above_text:
          description:
            '*Optional*. *True*, if the link preview must be shown above the
            message text; otherwise, the link preview will be shown below the
            message text'
          type: boolean
    UserProfilePhotos:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#userprofilephotos'
      description: "This object represent a user's profile pictures."
      type: object
      properties:
        total_count:
          description: Total number of profile pictures the target user has
          type: integer
        photos:
          description: Requested profile pictures (in up to 4 sizes each)
          type: array
          items:
            type: array
            items:
              $ref: '#/components/schemas/PhotoSize'
      required:
        - total_count
        - photos
    File:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#file'
      description:
        "This object represents a file ready to be downloaded. The file can be
        downloaded via the link
        `https://api.telegram.org/file/bot<token>/<file_path>`. It is guaranteed
        that the link will be valid for at least 1 hour. When the link expires,
        a new one can be requested by calling
        [getFile](https://core.telegram.org/bots/api/#getfile).\n\nThe maximum
        file size to download is 20 MB"
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        file_size:
          description:
            '*Optional*. File size in bytes. It can be bigger than 2^31 and some
            programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a signed
            64-bit integer or double-precision float type are safe for storing
            this value.'
          type: integer
        file_path:
          description:
            '*Optional*. File path. Use
            `https://api.telegram.org/file/bot<token>/<file_path>` to get the
            file.'
          type: string
      required:
        - file_id
        - file_unique_id
    WebAppInfo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#webappinfo'
      description:
        'Describes a [Web App](https://core.telegram.org/bots/webapps).'
      type: object
      properties:
        url:
          description:
            'An HTTPS URL of a Web App to be opened with additional data as
            specified in [Initializing Web
            Apps](https://core.telegram.org/bots/webapps#initializing-mini-apps)'
          type: string
      required:
        - url
    ReplyKeyboardMarkup:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#replykeyboardmarkup'
      description:
        'This object represents a [custom
        keyboard](https://core.telegram.org/bots/features#keyboards) with reply
        options (see [Introduction to
        bots](https://core.telegram.org/bots/features#keyboards) for details and
        examples). Not supported in channels and for messages sent on behalf of
        a Telegram Business account.'
      type: object
      properties:
        keyboard:
          description:
            'Array of button rows, each represented by an Array of
            [KeyboardButton](https://core.telegram.org/bots/api/#keyboardbutton)
            objects'
          type: array
          items:
            type: array
            items:
              $ref: '#/components/schemas/KeyboardButton'
        is_persistent:
          description:
            '*Optional*. Requests clients to always show the keyboard when the
            regular keyboard is hidden. Defaults to *false*, in which case the
            custom keyboard can be hidden and opened with a keyboard icon.'
          default: false
          type: boolean
        resize_keyboard:
          description:
            "*Optional*. Requests clients to resize the keyboard vertically for
            optimal fit (e.g., make the keyboard smaller if there are just two
            rows of buttons). Defaults to *false*, in which case the custom
            keyboard is always of the same height as the app's standard
            keyboard."
          default: false
          type: boolean
        one_time_keyboard:
          description:
            "*Optional*. Requests clients to hide the keyboard as soon as it's
            been used. The keyboard will still be available, but clients will
            automatically display the usual letter-keyboard in the chat - the
            user can press a special button in the input field to see the custom
            keyboard again. Defaults to *false*."
          default: false
          type: boolean
        input_field_placeholder:
          description:
            '*Optional*. The placeholder to be shown in the input field when the
            keyboard is active; 1-64 characters'
          type: string
          minLength: 1
          maxLength: 64
        selective:
          description:
            "*Optional*. Use this parameter if you want to show the keyboard to
            specific users only. Targets: 1) users that are @mentioned in the
            *text* of the [Message](https://core.telegram.org/bots/api/#message)
            object; 2) if the bot's message is a reply to a message in the same
            chat and forum topic, sender of the original
            message.  \n\n*Example:* A user requests to change the bot's
            language, bot replies to the request with a keyboard to select the
            new language. Other users in the group don't see the keyboard."
          type: boolean
      required:
        - keyboard
    KeyboardButton:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#keyboardbutton'
      description:
        'This object represents one button of the reply keyboard. At most one of
        the optional fields must be used to specify type of the button. For
        simple text buttons, *String* can be used instead of this object to
        specify the button text.'
      type: object
      properties:
        text:
          description:
            'Text of the button. If none of the optional fields are used, it
            will be sent as a message when the button is pressed'
          type: string
        request_users:
          $ref: '#/components/schemas/KeyboardButtonRequestUsers'
        request_chat:
          $ref: '#/components/schemas/KeyboardButtonRequestChat'
        request_contact:
          description:
            "*Optional*. If *True*, the user's phone number will be sent as a
            contact when the button is pressed. Available in private chats only."
          type: boolean
        request_location:
          description:
            "*Optional*. If *True*, the user's current location will be sent
            when the button is pressed. Available in private chats only."
          type: boolean
        request_poll:
          $ref: '#/components/schemas/KeyboardButtonPollType'
        web_app:
          $ref: '#/components/schemas/WebAppInfo'
      required:
        - text
    KeyboardButtonRequestUsers:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#keyboardbuttonrequestusers'
      description:
        'This object defines the criteria used to request suitable users.
        Information about the selected users will be shared with the bot when
        the corresponding button is pressed. [More about requesting users
        »](https://core.telegram.org/bots/features#chat-and-user-selection)'
      type: object
      properties:
        request_id:
          description:
            'Signed 32-bit identifier of the request that will be received back
            in the
            [UsersShared](https://core.telegram.org/bots/api/#usersshared)
            object. Must be unique within the message'
          type: integer
        user_is_bot:
          description:
            '*Optional*. Pass *True* to request bots, pass *False* to request
            regular users. If not specified, no additional restrictions are
            applied.'
          type: boolean
        user_is_premium:
          description:
            '*Optional*. Pass *True* to request premium users, pass *False* to
            request non-premium users. If not specified, no additional
            restrictions are applied.'
          type: boolean
        max_quantity:
          description:
            '*Optional*. The maximum number of users to be selected; 1-10.
            Defaults to 1.'
          default: 1
          type: integer
        request_name:
          description:
            "*Optional*. Pass *True* to request the users' first and last names"
          type: boolean
        request_username:
          description: "*Optional*. Pass *True* to request the users' usernames"
          type: boolean
        request_photo:
          description: "*Optional*. Pass *True* to request the users' photos"
          type: boolean
      required:
        - request_id
    KeyboardButtonRequestChat:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#keyboardbuttonrequestchat'
      description:
        'This object defines the criteria used to request a suitable chat.
        Information about the selected chat will be shared with the bot when the
        corresponding button is pressed. The bot will be granted requested
        rights in the chat if appropriate. [More about requesting chats
        »](https://core.telegram.org/bots/features#chat-and-user-selection).'
      type: object
      properties:
        request_id:
          description:
            'Signed 32-bit identifier of the request, which will be received
            back in the
            [ChatShared](https://core.telegram.org/bots/api/#chatshared) object.
            Must be unique within the message'
          type: integer
        chat_is_channel:
          description:
            'Pass *True* to request a channel chat, pass *False* to request a
            group or a supergroup chat.'
          type: boolean
        chat_is_forum:
          description:
            '*Optional*. Pass *True* to request a forum supergroup, pass *False*
            to request a non-forum chat. If not specified, no additional
            restrictions are applied.'
          type: boolean
        chat_has_username:
          description:
            '*Optional*. Pass *True* to request a supergroup or a channel with a
            username, pass *False* to request a chat without a username. If not
            specified, no additional restrictions are applied.'
          type: boolean
        chat_is_created:
          description:
            '*Optional*. Pass *True* to request a chat owned by the user.
            Otherwise, no additional restrictions are applied.'
          type: boolean
        user_administrator_rights:
          $ref: '#/components/schemas/ChatAdministratorRights'
        bot_administrator_rights:
          $ref: '#/components/schemas/ChatAdministratorRights'
        bot_is_member:
          description:
            '*Optional*. Pass *True* to request a chat with the bot as a member.
            Otherwise, no additional restrictions are applied.'
          type: boolean
        request_title:
          description: "*Optional*. Pass *True* to request the chat's title"
          type: boolean
        request_username:
          description: "*Optional*. Pass *True* to request the chat's username"
          type: boolean
        request_photo:
          description: "*Optional*. Pass *True* to request the chat's photo"
          type: boolean
      required:
        - request_id
        - chat_is_channel
    KeyboardButtonPollType:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#keyboardbuttonpolltype'
      description:
        'This object represents type of a poll, which is allowed to be created
        and sent when the corresponding button is pressed.'
      type: object
      properties:
        type:
          description:
            '*Optional*. If *quiz* is passed, the user will be allowed to create
            only polls in the quiz mode. If *regular* is passed, only regular
            polls will be allowed. Otherwise, the user will be allowed to create
            a poll of any type.'
          type: string
    ReplyKeyboardRemove:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#replykeyboardremove'
      description:
        'Upon receiving a message with this object, Telegram clients will remove
        the current custom keyboard and display the default letter-keyboard. By
        default, custom keyboards are displayed until a new keyboard is sent by
        a bot. An exception is made for one-time keyboards that are hidden
        immediately after the user presses a button (see
        [ReplyKeyboardMarkup](https://core.telegram.org/bots/api/#replykeyboardmarkup)).
        Not supported in channels and for messages sent on behalf of a Telegram
        Business account.'
      type: object
      properties:
        remove_keyboard:
          description:
            "Requests clients to remove the custom keyboard (user will not be
            able to summon this keyboard; if you want to hide the keyboard from
            sight but keep it accessible, use *one\\_time\\_keyboard* in
            [ReplyKeyboardMarkup](https://core.telegram.org/bots/api/#replykeyboardmarkup))"
          default: true
          type: boolean
        selective:
          description:
            "*Optional*. Use this parameter if you want to remove the keyboard
            for specific users only. Targets: 1) users that are @mentioned in
            the *text* of the
            [Message](https://core.telegram.org/bots/api/#message) object; 2) if
            the bot's message is a reply to a message in the same chat and forum
            topic, sender of the original message.  \n\n*Example:* A user votes
            in a poll, bot returns confirmation message in reply to the vote and
            removes the keyboard for that user, while still showing the keyboard
            with poll options to users who haven't voted yet."
          type: boolean
      required:
        - remove_keyboard
    InlineKeyboardMarkup:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinekeyboardmarkup'
      description:
        'This object represents an [inline
        keyboard](https://core.telegram.org/bots/features#inline-keyboards) that
        appears right next to the message it belongs to.'
      type: object
      properties:
        inline_keyboard:
          description:
            'Array of button rows, each represented by an Array of
            [InlineKeyboardButton](https://core.telegram.org/bots/api/#inlinekeyboardbutton)
            objects'
          type: array
          items:
            type: array
            items:
              $ref: '#/components/schemas/InlineKeyboardButton'
      required:
        - inline_keyboard
    InlineKeyboardButton:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinekeyboardbutton'
      description:
        This object represents one button of an inline keyboard. Exactly one of
        the optional fields must be used to specify type of the button.
      type: object
      properties:
        text:
          description: Label text on the button
          type: string
        url:
          description:
            '*Optional*. HTTP or tg:// URL to be opened when the button is
            pressed. Links `tg://user?id=<user_id>` can be used to mention a
            user by their identifier without using a username, if this is
            allowed by their privacy settings.'
          type: string
        callback_data:
          description:
            '*Optional*. Data to be sent in a [callback
            query](https://core.telegram.org/bots/api/#callbackquery) to the bot
            when the button is pressed, 1-64 bytes'
          type: string
        web_app:
          $ref: '#/components/schemas/WebAppInfo'
        login_url:
          $ref: '#/components/schemas/LoginUrl'
        switch_inline_query:
          description:
            "*Optional*. If set, pressing the button will prompt the user to
            select one of their chats, open that chat and insert the bot's
            username and the specified inline query in the input field. May be
            empty, in which case just the bot's username will be inserted. Not
            supported for messages sent on behalf of a Telegram Business
            account."
          type: string
        switch_inline_query_current_chat:
          description:
            "*Optional*. If set, pressing the button will insert the bot's
            username and the specified inline query in the current chat's input
            field. May be empty, in which case only the bot's username will be
            inserted.  \n\nThis offers a quick way for the user to open your bot
            in inline mode in the same chat - good for selecting something from
            multiple options. Not supported in channels and for messages sent on
            behalf of a Telegram Business account."
          type: string
        switch_inline_query_chosen_chat:
          $ref: '#/components/schemas/SwitchInlineQueryChosenChat'
        copy_text:
          $ref: '#/components/schemas/CopyTextButton'
        callback_game:
          $ref: '#/components/schemas/CallbackGame'
        pay:
          description:
            "*Optional*. Specify *True*, to send a [Pay
            button](https://core.telegram.org/bots/api/#payments). Substrings
            “⭐” and “XTR” in the buttons's text will be replaced with a
            Telegram Star icon.  \n\n**NOTE:** This type of button **must**
            always be the first button in the first row and can only be used in
            invoice messages."
          type: boolean
      required:
        - text
    LoginUrl:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#loginurl'
      description:
        "This object represents a parameter of the inline keyboard button used
        to automatically authorize a user. Serves as a great replacement for the
        [Telegram Login Widget](https://core.telegram.org/widgets/login) when
        the user is coming from Telegram. All the user needs to do is tap/click
        a button and confirm that they want to log in:\n\nTelegram apps support
        these buttons as of [version
        5.7](https://telegram.org/blog/privacy-discussions-web-bots#meet-seamless-web-bots).\n\nSample
        bot: [@discussbot](https://t.me/discussbot)"
      type: object
      properties:
        url:
          description:
            "An HTTPS URL to be opened with user authorization data added to the
            query string when the button is pressed. If the user refuses to
            provide authorization data, the original URL without information
            about the user will be opened. The data added is the same as
            described in [Receiving authorization
            data](https://core.telegram.org/widgets/login#receiving-authorization-data).  \n\n**NOTE:**
            You **must** always check the hash of the received data to verify
            the authentication and the integrity of the data as described in
            [Checking
            authorization](https://core.telegram.org/widgets/login#checking-authorization)."
          type: string
        forward_text:
          description:
            '*Optional*. New text of the button in forwarded messages.'
          type: string
        bot_username:
          description:
            "*Optional*. Username of a bot, which will be used for user
            authorization. See [Setting up a
            bot](https://core.telegram.org/widgets/login#setting-up-a-bot) for
            more details. If not specified, the current bot's username will be
            assumed. The *url*'s domain must be the same as the domain linked
            with the bot. See [Linking your domain to the
            bot](https://core.telegram.org/widgets/login#linking-your-domain-to-the-bot)
            for more details."
          type: string
        request_write_access:
          description:
            '*Optional*. Pass *True* to request the permission for your bot to
            send messages to the user.'
          type: boolean
      required:
        - url
    SwitchInlineQueryChosenChat:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#switchinlinequerychosenchat'
      description:
        'This object represents an inline button that switches the current user
        to inline mode in a chosen chat, with an optional default inline query.'
      type: object
      properties:
        query:
          description:
            "*Optional*. The default inline query to be inserted in the input
            field. If left empty, only the bot's username will be inserted"
          type: string
        allow_user_chats:
          description:
            '*Optional*. True, if private chats with users can be chosen'
          type: boolean
        allow_bot_chats:
          description:
            '*Optional*. True, if private chats with bots can be chosen'
          type: boolean
        allow_group_chats:
          description:
            '*Optional*. True, if group and supergroup chats can be chosen'
          type: boolean
        allow_channel_chats:
          description: '*Optional*. True, if channel chats can be chosen'
          type: boolean
    CopyTextButton:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#copytextbutton'
      description:
        This object represents an inline keyboard button that copies specified
        text to the clipboard.
      type: object
      properties:
        text:
          description: The text to be copied to the clipboard; 1-256 characters
          type: string
          minLength: 1
          maxLength: 256
      required:
        - text
    CallbackQuery:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#callbackquery'
      description:
        "This object represents an incoming callback query from a callback
        button in an [inline
        keyboard](https://core.telegram.org/bots/features#inline-keyboards). If
        the button that originated the query was attached to a message sent by
        the bot, the field *message* will be present. If the button was attached
        to a message sent via the bot (in [inline
        mode](https://core.telegram.org/bots/api/#inline-mode)), the field
        *inline\\_message\\_id* will be present. Exactly one of the fields
        *data* or *game\\_short\\_name* will be present."
      type: object
      properties:
        id:
          description: Unique identifier for this query
          type: string
        from:
          $ref: '#/components/schemas/User'
        message:
          $ref: '#/components/schemas/MaybeInaccessibleMessage'
        inline_message_id:
          description:
            '*Optional*. Identifier of the message sent via the bot in inline
            mode, that originated the query.'
          type: string
        chat_instance:
          description:
            'Global identifier, uniquely corresponding to the chat to which the
            message with the callback button was sent. Useful for high scores in
            [games](https://core.telegram.org/bots/api/#games).'
          type: string
        data:
          description:
            '*Optional*. Data associated with the callback button. Be aware that
            the message originated the query can contain no callback buttons
            with this data.'
          type: string
        game_short_name:
          description:
            '*Optional*. Short name of a
            [Game](https://core.telegram.org/bots/api/#games) to be returned,
            serves as the unique identifier for the game'
          type: string
      required:
        - id
        - from
        - chat_instance
    ForceReply:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forcereply'
      description:
        "Upon receiving a message with this object, Telegram clients will
        display a reply interface to the user (act as if the user has selected
        the bot's message and tapped 'Reply'). This can be extremely useful if
        you want to create user-friendly step-by-step interfaces without having
        to sacrifice [privacy
        mode](https://core.telegram.org/bots/features#privacy-mode). Not
        supported in channels and for messages sent on behalf of a Telegram
        Business account."
      type: object
      properties:
        force_reply:
          description:
            "Shows reply interface to the user, as if they manually selected the
            bot's message and tapped 'Reply'"
          default: true
          type: boolean
        input_field_placeholder:
          description:
            '*Optional*. The placeholder to be shown in the input field when the
            reply is active; 1-64 characters'
          type: string
          minLength: 1
          maxLength: 64
        selective:
          description:
            "*Optional*. Use this parameter if you want to force reply from
            specific users only. Targets: 1) users that are @mentioned in the
            *text* of the [Message](https://core.telegram.org/bots/api/#message)
            object; 2) if the bot's message is a reply to a message in the same
            chat and forum topic, sender of the original message."
          type: boolean
      required:
        - force_reply
    ChatPhoto:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatphoto'
      description: This object represents a chat photo.
      type: object
      properties:
        small_file_id:
          description:
            "File identifier of small (160x160) chat photo. This file\\_id can
            be used only for photo download and only for as long as the photo is
            not changed."
          type: string
        small_file_unique_id:
          description:
            "Unique file identifier of small (160x160) chat photo, which is
            supposed to be the same over time and for different bots. Can't be
            used to download or reuse the file."
          type: string
        big_file_id:
          description:
            "File identifier of big (640x640) chat photo. This file\\_id can be
            used only for photo download and only for as long as the photo is
            not changed."
          type: string
        big_file_unique_id:
          description:
            "Unique file identifier of big (640x640) chat photo, which is
            supposed to be the same over time and for different bots. Can't be
            used to download or reuse the file."
          type: string
      required:
        - small_file_id
        - small_file_unique_id
        - big_file_id
        - big_file_unique_id
    ChatInviteLink:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatinvitelink'
      description: Represents an invite link for a chat.
      type: object
      properties:
        invite_link:
          description:
            'The invite link. If the link was created by another chat
            administrator, then the second part of the link will be replaced
            with “…”.'
          type: string
        creator:
          $ref: '#/components/schemas/User'
        creates_join_request:
          description:
            '*True*, if users joining the chat via the link need to be approved
            by chat administrators'
          type: boolean
        is_primary:
          description: '*True*, if the link is primary'
          type: boolean
        is_revoked:
          description: '*True*, if the link is revoked'
          type: boolean
        name:
          description: '*Optional*. Invite link name'
          type: string
        expire_date:
          description:
            '*Optional*. Point in time (Unix timestamp) when the link will
            expire or has been expired'
          type: integer
        member_limit:
          description:
            '*Optional*. The maximum number of users that can be members of the
            chat simultaneously after joining the chat via this invite link;
            1-99999'
          type: integer
        pending_join_request_count:
          description:
            '*Optional*. Number of pending join requests created using this link'
          type: integer
        subscription_period:
          description:
            '*Optional*. The number of seconds the subscription will be active
            for before the next payment'
          type: integer
        subscription_price:
          description:
            '*Optional*. The amount of Telegram Stars a user must pay initially
            and after each subsequent subscription period to be a member of the
            chat using the link'
          type: integer
      required:
        - invite_link
        - creator
        - creates_join_request
        - is_primary
        - is_revoked
    ChatAdministratorRights:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatadministratorrights'
      description: Represents the rights of an administrator in a chat.
      type: object
      properties:
        is_anonymous:
          description: "*True*, if the user's presence in the chat is hidden"
          type: boolean
        can_manage_chat:
          description:
            '*True*, if the administrator can access the chat event log, get
            boost list, see hidden supergroup and channel members, report spam
            messages and ignore slow mode. Implied by any other administrator
            privilege.'
          type: boolean
        can_delete_messages:
          description:
            '*True*, if the administrator can delete messages of other users'
          type: boolean
        can_manage_video_chats:
          description: '*True*, if the administrator can manage video chats'
          type: boolean
        can_restrict_members:
          description:
            '*True*, if the administrator can restrict, ban or unban chat
            members, or access supergroup statistics'
          type: boolean
        can_promote_members:
          description:
            '*True*, if the administrator can add new administrators with a
            subset of their own privileges or demote administrators that they
            have promoted, directly or indirectly (promoted by administrators
            that were appointed by the user)'
          type: boolean
        can_change_info:
          description:
            '*True*, if the user is allowed to change the chat title, photo and
            other settings'
          type: boolean
        can_invite_users:
          description:
            '*True*, if the user is allowed to invite new users to the chat'
          type: boolean
        can_post_stories:
          description:
            '*True*, if the administrator can post stories to the chat'
          type: boolean
        can_edit_stories:
          description:
            "*True*, if the administrator can edit stories posted by other
            users, post stories to the chat page, pin chat stories, and access
            the chat's story archive"
          type: boolean
        can_delete_stories:
          description:
            '*True*, if the administrator can delete stories posted by other
            users'
          type: boolean
        can_post_messages:
          description:
            '*Optional*. *True*, if the administrator can post messages in the
            channel, or access channel statistics; for channels only'
          type: boolean
        can_edit_messages:
          description:
            '*Optional*. *True*, if the administrator can edit messages of other
            users and can pin messages; for channels only'
          type: boolean
        can_pin_messages:
          description:
            '*Optional*. *True*, if the user is allowed to pin messages; for
            groups and supergroups only'
          type: boolean
        can_manage_topics:
          description:
            '*Optional*. *True*, if the user is allowed to create, rename,
            close, and reopen forum topics; for supergroups only'
          type: boolean
      required:
        - is_anonymous
        - can_manage_chat
        - can_delete_messages
        - can_manage_video_chats
        - can_restrict_members
        - can_promote_members
        - can_change_info
        - can_invite_users
        - can_post_stories
        - can_edit_stories
        - can_delete_stories
    ChatMemberUpdated:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmemberupdated'
      description:
        This object represents changes in the status of a chat member.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        from:
          $ref: '#/components/schemas/User'
        date:
          description: Date the change was done in Unix time
          type: integer
        old_chat_member:
          $ref: '#/components/schemas/ChatMember'
        new_chat_member:
          $ref: '#/components/schemas/ChatMember'
        invite_link:
          $ref: '#/components/schemas/ChatInviteLink'
        via_join_request:
          description:
            '*Optional*. True, if the user joined the chat after sending a
            direct join request without using an invite link and being approved
            by an administrator'
          type: boolean
        via_chat_folder_invite_link:
          description:
            '*Optional*. True, if the user joined the chat via a chat folder
            invite link'
          type: boolean
      required:
        - chat
        - from
        - date
        - old_chat_member
        - new_chat_member
    ChatMember:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmember'
      description:
        "This object contains information about one member of a chat. Currently,
        the following 6 types of chat members are supported:\n\n*
        [ChatMemberOwner](https://core.telegram.org/bots/api/#chatmemberowner)\n*
        [ChatMemberAdministrator](https://core.telegram.org/bots/api/#chatmemberadministrator)\n*
        [ChatMemberMember](https://core.telegram.org/bots/api/#chatmembermember)\n*
        [ChatMemberRestricted](https://core.telegram.org/bots/api/#chatmemberrestricted)\n*
        [ChatMemberLeft](https://core.telegram.org/bots/api/#chatmemberleft)\n*
        [ChatMemberBanned](https://core.telegram.org/bots/api/#chatmemberbanned)"
      anyOf:
        - $ref: '#/components/schemas/ChatMemberOwner'
        - $ref: '#/components/schemas/ChatMemberAdministrator'
        - $ref: '#/components/schemas/ChatMemberMember'
        - $ref: '#/components/schemas/ChatMemberRestricted'
        - $ref: '#/components/schemas/ChatMemberLeft'
        - $ref: '#/components/schemas/ChatMemberBanned'
    ChatMemberOwner:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmemberowner'
      description:
        'Represents a [chat
        member](https://core.telegram.org/bots/api/#chatmember) that owns the
        chat and has all administrator privileges.'
      type: object
      properties:
        status:
          description: "The member's status in the chat, always “creator”"
          default: creator
          type: string
        user:
          $ref: '#/components/schemas/User'
        is_anonymous:
          description: "*True*, if the user's presence in the chat is hidden"
          type: boolean
        custom_title:
          description: '*Optional*. Custom title for this user'
          type: string
      required:
        - status
        - user
        - is_anonymous
    ChatMemberAdministrator:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmemberadministrator'
      description:
        'Represents a [chat
        member](https://core.telegram.org/bots/api/#chatmember) that has some
        additional privileges.'
      type: object
      properties:
        status:
          description: "The member's status in the chat, always “administrator”"
          default: administrator
          type: string
        user:
          $ref: '#/components/schemas/User'
        can_be_edited:
          description:
            '*True*, if the bot is allowed to edit administrator privileges of
            that user'
          type: boolean
        is_anonymous:
          description: "*True*, if the user's presence in the chat is hidden"
          type: boolean
        can_manage_chat:
          description:
            '*True*, if the administrator can access the chat event log, get
            boost list, see hidden supergroup and channel members, report spam
            messages and ignore slow mode. Implied by any other administrator
            privilege.'
          type: boolean
        can_delete_messages:
          description:
            '*True*, if the administrator can delete messages of other users'
          type: boolean
        can_manage_video_chats:
          description: '*True*, if the administrator can manage video chats'
          type: boolean
        can_restrict_members:
          description:
            '*True*, if the administrator can restrict, ban or unban chat
            members, or access supergroup statistics'
          type: boolean
        can_promote_members:
          description:
            '*True*, if the administrator can add new administrators with a
            subset of their own privileges or demote administrators that they
            have promoted, directly or indirectly (promoted by administrators
            that were appointed by the user)'
          type: boolean
        can_change_info:
          description:
            '*True*, if the user is allowed to change the chat title, photo and
            other settings'
          type: boolean
        can_invite_users:
          description:
            '*True*, if the user is allowed to invite new users to the chat'
          type: boolean
        can_post_stories:
          description:
            '*True*, if the administrator can post stories to the chat'
          type: boolean
        can_edit_stories:
          description:
            "*True*, if the administrator can edit stories posted by other
            users, post stories to the chat page, pin chat stories, and access
            the chat's story archive"
          type: boolean
        can_delete_stories:
          description:
            '*True*, if the administrator can delete stories posted by other
            users'
          type: boolean
        can_post_messages:
          description:
            '*Optional*. *True*, if the administrator can post messages in the
            channel, or access channel statistics; for channels only'
          type: boolean
        can_edit_messages:
          description:
            '*Optional*. *True*, if the administrator can edit messages of other
            users and can pin messages; for channels only'
          type: boolean
        can_pin_messages:
          description:
            '*Optional*. *True*, if the user is allowed to pin messages; for
            groups and supergroups only'
          type: boolean
        can_manage_topics:
          description:
            '*Optional*. *True*, if the user is allowed to create, rename,
            close, and reopen forum topics; for supergroups only'
          type: boolean
        custom_title:
          description: '*Optional*. Custom title for this user'
          type: string
      required:
        - status
        - user
        - can_be_edited
        - is_anonymous
        - can_manage_chat
        - can_delete_messages
        - can_manage_video_chats
        - can_restrict_members
        - can_promote_members
        - can_change_info
        - can_invite_users
        - can_post_stories
        - can_edit_stories
        - can_delete_stories
    ChatMemberMember:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmembermember'
      description:
        'Represents a [chat
        member](https://core.telegram.org/bots/api/#chatmember) that has no
        additional privileges or restrictions.'
      type: object
      properties:
        status:
          description: "The member's status in the chat, always “member”"
          default: member
          type: string
        user:
          $ref: '#/components/schemas/User'
        until_date:
          description:
            "*Optional*. Date when the user's subscription will expire; Unix
            time"
          type: integer
      required:
        - status
        - user
    ChatMemberRestricted:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmemberrestricted'
      description:
        'Represents a [chat
        member](https://core.telegram.org/bots/api/#chatmember) that is under
        certain restrictions in the chat. Supergroups only.'
      type: object
      properties:
        status:
          description: "The member's status in the chat, always “restricted”"
          default: restricted
          type: string
        user:
          $ref: '#/components/schemas/User'
        is_member:
          description:
            '*True*, if the user is a member of the chat at the moment of the
            request'
          type: boolean
        can_send_messages:
          description:
            '*True*, if the user is allowed to send text messages, contacts,
            giveaways, giveaway winners, invoices, locations and venues'
          type: boolean
        can_send_audios:
          description: '*True*, if the user is allowed to send audios'
          type: boolean
        can_send_documents:
          description: '*True*, if the user is allowed to send documents'
          type: boolean
        can_send_photos:
          description: '*True*, if the user is allowed to send photos'
          type: boolean
        can_send_videos:
          description: '*True*, if the user is allowed to send videos'
          type: boolean
        can_send_video_notes:
          description: '*True*, if the user is allowed to send video notes'
          type: boolean
        can_send_voice_notes:
          description: '*True*, if the user is allowed to send voice notes'
          type: boolean
        can_send_polls:
          description: '*True*, if the user is allowed to send polls'
          type: boolean
        can_send_other_messages:
          description:
            '*True*, if the user is allowed to send animations, games, stickers
            and use inline bots'
          type: boolean
        can_add_web_page_previews:
          description:
            '*True*, if the user is allowed to add web page previews to their
            messages'
          type: boolean
        can_change_info:
          description:
            '*True*, if the user is allowed to change the chat title, photo and
            other settings'
          type: boolean
        can_invite_users:
          description:
            '*True*, if the user is allowed to invite new users to the chat'
          type: boolean
        can_pin_messages:
          description: '*True*, if the user is allowed to pin messages'
          type: boolean
        can_manage_topics:
          description: '*True*, if the user is allowed to create forum topics'
          type: boolean
        until_date:
          description:
            'Date when restrictions will be lifted for this user; Unix time. If
            0, then the user is restricted forever'
          type: integer
      required:
        - status
        - user
        - is_member
        - can_send_messages
        - can_send_audios
        - can_send_documents
        - can_send_photos
        - can_send_videos
        - can_send_video_notes
        - can_send_voice_notes
        - can_send_polls
        - can_send_other_messages
        - can_add_web_page_previews
        - can_change_info
        - can_invite_users
        - can_pin_messages
        - can_manage_topics
        - until_date
    ChatMemberLeft:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmemberleft'
      description:
        "Represents a [chat
        member](https://core.telegram.org/bots/api/#chatmember) that isn't
        currently a member of the chat, but may join it themselves."
      type: object
      properties:
        status:
          description: "The member's status in the chat, always “left”"
          default: left
          type: string
        user:
          $ref: '#/components/schemas/User'
      required:
        - status
        - user
    ChatMemberBanned:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatmemberbanned'
      description:
        "Represents a [chat
        member](https://core.telegram.org/bots/api/#chatmember) that was banned
        in the chat and can't return to the chat or view chat messages."
      type: object
      properties:
        status:
          description: "The member's status in the chat, always “kicked”"
          default: kicked
          type: string
        user:
          $ref: '#/components/schemas/User'
        until_date:
          description:
            'Date when restrictions will be lifted for this user; Unix time. If
            0, then the user is banned forever'
          type: integer
      required:
        - status
        - user
        - until_date
    ChatJoinRequest:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatjoinrequest'
      description: Represents a join request sent to a chat.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        from:
          $ref: '#/components/schemas/User'
        user_chat_id:
          description:
            'Identifier of a private chat with the user who sent the join
            request. This number may have more than 32 significant bits and some
            programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a 64-bit
            integer or double-precision float type are safe for storing this
            identifier. The bot can use this identifier for 5 minutes to send
            messages until the join request is processed, assuming no other
            administrator contacted the user.'
          type: integer
        date:
          description: Date the request was sent in Unix time
          type: integer
        bio:
          description: '*Optional*. Bio of the user.'
          type: string
        invite_link:
          $ref: '#/components/schemas/ChatInviteLink'
      required:
        - chat
        - from
        - user_chat_id
        - date
    ChatPermissions:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatpermissions'
      description:
        Describes actions that a non-administrator user is allowed to take in a
        chat.
      type: object
      properties:
        can_send_messages:
          description:
            '*Optional*. *True*, if the user is allowed to send text messages,
            contacts, giveaways, giveaway winners, invoices, locations and
            venues'
          type: boolean
        can_send_audios:
          description:
            '*Optional*. *True*, if the user is allowed to send audios'
          type: boolean
        can_send_documents:
          description:
            '*Optional*. *True*, if the user is allowed to send documents'
          type: boolean
        can_send_photos:
          description:
            '*Optional*. *True*, if the user is allowed to send photos'
          type: boolean
        can_send_videos:
          description:
            '*Optional*. *True*, if the user is allowed to send videos'
          type: boolean
        can_send_video_notes:
          description:
            '*Optional*. *True*, if the user is allowed to send video notes'
          type: boolean
        can_send_voice_notes:
          description:
            '*Optional*. *True*, if the user is allowed to send voice notes'
          type: boolean
        can_send_polls:
          description:
            '*Optional*. *True*, if the user is allowed to send polls'
          type: boolean
        can_send_other_messages:
          description:
            '*Optional*. *True*, if the user is allowed to send animations,
            games, stickers and use inline bots'
          type: boolean
        can_add_web_page_previews:
          description:
            '*Optional*. *True*, if the user is allowed to add web page previews
            to their messages'
          type: boolean
        can_change_info:
          description:
            '*Optional*. *True*, if the user is allowed to change the chat
            title, photo and other settings. Ignored in public supergroups'
          type: boolean
        can_invite_users:
          description:
            '*Optional*. *True*, if the user is allowed to invite new users to
            the chat'
          type: boolean
        can_pin_messages:
          description:
            '*Optional*. *True*, if the user is allowed to pin messages. Ignored
            in public supergroups'
          type: boolean
        can_manage_topics:
          description:
            "*Optional*. *True*, if the user is allowed to create forum topics.
            If omitted defaults to the value of can\\_pin\\_messages"
          type: boolean
    Birthdate:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#birthdate'
      description: Describes the birthdate of a user.
      type: object
      properties:
        day:
          description: "Day of the user's birth; 1-31"
          type: integer
        month:
          description: "Month of the user's birth; 1-12"
          type: integer
        year:
          description: "*Optional*. Year of the user's birth"
          type: integer
      required:
        - day
        - month
    BusinessIntro:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#businessintro'
      description:
        Contains information about the start page settings of a Telegram
        Business account.
      type: object
      properties:
        title:
          description: '*Optional*. Title text of the business intro'
          type: string
        message:
          description: '*Optional*. Message text of the business intro'
          type: string
        sticker:
          $ref: '#/components/schemas/Sticker'
    BusinessLocation:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#businesslocation'
      description:
        Contains information about the location of a Telegram Business account.
      type: object
      properties:
        address:
          description: Address of the business
          type: string
        location:
          $ref: '#/components/schemas/Location'
      required:
        - address
    BusinessOpeningHoursInterval:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#businessopeninghoursinterval'
      description:
        Describes an interval of time during which a business is open.
      type: object
      properties:
        opening_minute:
          description:
            "The minute's sequence number in a week, starting on Monday, marking
            the start of the time interval during which the business is open; 0
            - 7 \\* 24 \\* 60"
          type: integer
        closing_minute:
          description:
            "The minute's sequence number in a week, starting on Monday, marking
            the end of the time interval during which the business is open; 0 -
            8 \\* 24 \\* 60"
          type: integer
      required:
        - opening_minute
        - closing_minute
    BusinessOpeningHours:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#businessopeninghours'
      description: Describes the opening hours of a business.
      type: object
      properties:
        time_zone_name:
          description:
            Unique name of the time zone for which the opening hours are defined
          type: string
        opening_hours:
          description: List of time intervals describing business opening hours
          type: array
          items:
            $ref: '#/components/schemas/BusinessOpeningHoursInterval'
      required:
        - time_zone_name
        - opening_hours
    ChatLocation:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatlocation'
      description: Represents a location to which a chat is connected.
      type: object
      properties:
        location:
          $ref: '#/components/schemas/Location'
        address:
          description:
            'Location address; 1-64 characters, as defined by the chat owner'
          type: string
          minLength: 1
          maxLength: 64
      required:
        - location
        - address
    ReactionType:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#reactiontype'
      description:
        "This object describes the type of a reaction. Currently, it can be one
        of\n\n*
        [ReactionTypeEmoji](https://core.telegram.org/bots/api/#reactiontypeemoji)\n*
        [ReactionTypeCustomEmoji](https://core.telegram.org/bots/api/#reactiontypecustomemoji)\n*
        [ReactionTypePaid](https://core.telegram.org/bots/api/#reactiontypepaid)"
      anyOf:
        - $ref: '#/components/schemas/ReactionTypeEmoji'
        - $ref: '#/components/schemas/ReactionTypeCustomEmoji'
        - $ref: '#/components/schemas/ReactionTypePaid'
    ReactionTypeEmoji:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#reactiontypeemoji'
      description: The reaction is based on an emoji.
      type: object
      properties:
        type:
          description: 'Type of the reaction, always “emoji”'
          default: emoji
          type: string
        emoji:
          description:
            'Reaction emoji. Currently, it can be one of "👍", "👎", "❤", "🔥",
            "🥰", "👏", "😁", "🤔", "🤯", "😱", "🤬", "😢", "🎉", "🤩", "🤮",
            "💩", "🙏", "👌", "🕊", "🤡", "🥱", "🥴", "😍", "🐳", "❤‍🔥", "🌚",
            "🌭", "💯", "🤣", "⚡", "🍌", "🏆", "💔", "🤨", "😐", "🍓", "🍾",
            "💋", "🖕", "😈", "😴", "😭", "🤓", "👻", "👨‍💻", "👀", "🎃", "🙈",
            "😇", "😨", "🤝", "✍", "🤗", "🫡", "🎅", "🎄", "☃", "💅", "🤪",
            "🗿", "🆒", "💘", "🙉", "🦄", "😘", "💊", "🙊", "😎", "👾", "🤷‍♂",
            "🤷", "🤷‍♀", "😡"'
          type: string
          enum:
            - 👍
            - 👎
            - ❤
            - 🔥
            - 🥰
            - 👏
            - 😁
            - 🤔
            - 🤯
            - 😱
            - 🤬
            - 😢
            - 🎉
            - 🤩
            - 🤮
            - 💩
            - 🙏
            - 👌
            - 🕊
            - 🤡
            - 🥱
            - 🥴
            - 😍
            - 🐳
            - ❤‍🔥
            - 🌚
            - 🌭
            - 💯
            - 🤣
            - ⚡
            - 🍌
            - 🏆
            - 💔
            - 🤨
            - 😐
            - 🍓
            - 🍾
            - 💋
            - 🖕
            - 😈
            - 😴
            - 😭
            - 🤓
            - 👻
            - 👨‍💻
            - 👀
            - 🎃
            - 🙈
            - 😇
            - 😨
            - 🤝
            - ✍
            - 🤗
            - 🫡
            - 🎅
            - 🎄
            - ☃
            - 💅
            - 🤪
            - 🗿
            - 🆒
            - 💘
            - 🙉
            - 🦄
            - 😘
            - 💊
            - 🙊
            - 😎
            - 👾
            - 🤷‍♂
            - 🤷
            - 🤷‍♀
            - 😡
      required:
        - type
        - emoji
    ReactionTypeCustomEmoji:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#reactiontypecustomemoji'
      description: The reaction is based on a custom emoji.
      type: object
      properties:
        type:
          description: "Type of the reaction, always “custom\\_emoji”"
          default: custom_emoji
          type: string
        custom_emoji_id:
          description: Custom emoji identifier
          type: string
      required:
        - type
        - custom_emoji_id
    ReactionTypePaid:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#reactiontypepaid'
      description: The reaction is paid.
      type: object
      properties:
        type:
          description: 'Type of the reaction, always “paid”'
          default: paid
          type: string
      required:
        - type
    ReactionCount:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#reactioncount'
      description:
        Represents a reaction added to a message along with the number of times
        it was added.
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ReactionType'
        total_count:
          description: Number of times the reaction was added
          type: integer
      required:
        - type
        - total_count
    MessageReactionUpdated:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messagereactionupdated'
      description:
        This object represents a change of a reaction on a message performed by
        a user.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        message_id:
          description: Unique identifier of the message inside the chat
          type: integer
        user:
          $ref: '#/components/schemas/User'
        actor_chat:
          $ref: '#/components/schemas/Chat'
        date:
          description: Date of the change in Unix time
          type: integer
        old_reaction:
          description: Previous list of reaction types that were set by the user
          type: array
          items:
            $ref: '#/components/schemas/ReactionType'
        new_reaction:
          description: New list of reaction types that have been set by the user
          type: array
          items:
            $ref: '#/components/schemas/ReactionType'
      required:
        - chat
        - message_id
        - date
        - old_reaction
        - new_reaction
    MessageReactionCountUpdated:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#messagereactioncountupdated'
      description:
        This object represents reaction changes on a message with anonymous
        reactions.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        message_id:
          description: Unique message identifier inside the chat
          type: integer
        date:
          description: Date of the change in Unix time
          type: integer
        reactions:
          description: List of reactions that are present on the message
          type: array
          items:
            $ref: '#/components/schemas/ReactionCount'
      required:
        - chat
        - message_id
        - date
        - reactions
    ForumTopic:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#forumtopic'
      description: This object represents a forum topic.
      type: object
      properties:
        message_thread_id:
          description: Unique identifier of the forum topic
          type: integer
        name:
          description: Name of the topic
          type: string
        icon_color:
          description: Color of the topic icon in RGB format
          type: integer
        icon_custom_emoji_id:
          description:
            '*Optional*. Unique identifier of the custom emoji shown as the
            topic icon'
          type: string
      required:
        - message_thread_id
        - name
        - icon_color
    BotCommand:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommand'
      description: This object represents a bot command.
      type: object
      properties:
        command:
          description:
            'Text of the command; 1-32 characters. Can contain only lowercase
            English letters, digits and underscores.'
          type: string
          minLength: 1
          maxLength: 32
        description:
          description: Description of the command; 1-256 characters.
          type: string
          minLength: 1
          maxLength: 256
      required:
        - command
        - description
    BotCommandScope:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscope'
      description:
        "This object represents the scope to which bot commands are applied.
        Currently, the following 7 scopes are supported:\n\n*
        [BotCommandScopeDefault](https://core.telegram.org/bots/api/#botcommandscopedefault)\n*
        [BotCommandScopeAllPrivateChats](https://core.telegram.org/bots/api/#botcommandscopeallprivatechats)\n*
        [BotCommandScopeAllGroupChats](https://core.telegram.org/bots/api/#botcommandscopeallgroupchats)\n*
        [BotCommandScopeAllChatAdministrators](https://core.telegram.org/bots/api/#botcommandscopeallchatadministrators)\n*
        [BotCommandScopeChat](https://core.telegram.org/bots/api/#botcommandscopechat)\n*
        [BotCommandScopeChatAdministrators](https://core.telegram.org/bots/api/#botcommandscopechatadministrators)\n*
        [BotCommandScopeChatMember](https://core.telegram.org/bots/api/#botcommandscopechatmember)"
      anyOf:
        - $ref: '#/components/schemas/BotCommandScopeDefault'
        - $ref: '#/components/schemas/BotCommandScopeAllPrivateChats'
        - $ref: '#/components/schemas/BotCommandScopeAllGroupChats'
        - $ref: '#/components/schemas/BotCommandScopeAllChatAdministrators'
        - $ref: '#/components/schemas/BotCommandScopeChat'
        - $ref: '#/components/schemas/BotCommandScopeChatAdministrators'
        - $ref: '#/components/schemas/BotCommandScopeChatMember'
    BotCommandScopeDefault:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscopedefault'
      description:
        'Represents the default
        [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot
        commands. Default commands are used if no commands with a [narrower
        scope](https://core.telegram.org/bots/api/#determining-list-of-commands)
        are specified for the user.'
      type: object
      properties:
        type:
          description: 'Scope type, must be *default*'
          default: default
          type: string
      required:
        - type
    BotCommandScopeAllPrivateChats:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscopeallprivatechats'
      description:
        'Represents the
        [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot
        commands, covering all private chats.'
      type: object
      properties:
        type:
          description: "Scope type, must be *all\\_private\\_chats*"
          default: all_private_chats
          type: string
      required:
        - type
    BotCommandScopeAllGroupChats:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscopeallgroupchats'
      description:
        'Represents the
        [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot
        commands, covering all group and supergroup chats.'
      type: object
      properties:
        type:
          description: "Scope type, must be *all\\_group\\_chats*"
          default: all_group_chats
          type: string
      required:
        - type
    BotCommandScopeAllChatAdministrators:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscopeallchatadministrators'
      description:
        'Represents the
        [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot
        commands, covering all group and supergroup chat administrators.'
      type: object
      properties:
        type:
          description: "Scope type, must be *all\\_chat\\_administrators*"
          default: all_chat_administrators
          type: string
      required:
        - type
    BotCommandScopeChat:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscopechat'
      description:
        'Represents the
        [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot
        commands, covering a specific chat.'
      type: object
      properties:
        type:
          description: 'Scope type, must be *chat*'
          default: chat
          type: string
        chat_id:
          description:
            'Unique identifier for the target chat or username of the target
            supergroup (in the format `@supergroupusername`)'
          anyOf:
            - type: integer
            - type: string
      required:
        - type
        - chat_id
    BotCommandScopeChatAdministrators:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscopechatadministrators'
      description:
        'Represents the
        [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot
        commands, covering all administrators of a specific group or supergroup
        chat.'
      type: object
      properties:
        type:
          description: "Scope type, must be *chat\\_administrators*"
          default: chat_administrators
          type: string
        chat_id:
          description:
            'Unique identifier for the target chat or username of the target
            supergroup (in the format `@supergroupusername`)'
          anyOf:
            - type: integer
            - type: string
      required:
        - type
        - chat_id
    BotCommandScopeChatMember:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botcommandscopechatmember'
      description:
        'Represents the
        [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot
        commands, covering a specific member of a group or supergroup chat.'
      type: object
      properties:
        type:
          description: "Scope type, must be *chat\\_member*"
          default: chat_member
          type: string
        chat_id:
          description:
            'Unique identifier for the target chat or username of the target
            supergroup (in the format `@supergroupusername`)'
          anyOf:
            - type: integer
            - type: string
        user_id:
          description: Unique identifier of the target user
          type: integer
      required:
        - type
        - chat_id
        - user_id
    BotName:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botname'
      description: "This object represents the bot's name."
      type: object
      properties:
        name:
          description: "The bot's name"
          type: string
      required:
        - name
    BotDescription:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botdescription'
      description: "This object represents the bot's description."
      type: object
      properties:
        description:
          description: "The bot's description"
          type: string
      required:
        - description
    BotShortDescription:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#botshortdescription'
      description: "This object represents the bot's short description."
      type: object
      properties:
        short_description:
          description: "The bot's short description"
          type: string
      required:
        - short_description
    MenuButton:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#menubutton'
      description:
        "This object describes the bot's menu button in a private chat. It
        should be one of\n\n*
        [MenuButtonCommands](https://core.telegram.org/bots/api/#menubuttoncommands)\n*
        [MenuButtonWebApp](https://core.telegram.org/bots/api/#menubuttonwebapp)\n*
        [MenuButtonDefault](https://core.telegram.org/bots/api/#menubuttondefault)"
      anyOf:
        - $ref: '#/components/schemas/MenuButtonCommands'
        - $ref: '#/components/schemas/MenuButtonWebApp'
        - $ref: '#/components/schemas/MenuButtonDefault'
    MenuButtonCommands:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#menubuttoncommands'
      description:
        "Represents a menu button, which opens the bot's list of commands."
      type: object
      properties:
        type:
          description: 'Type of the button, must be *commands*'
          default: commands
          type: string
      required:
        - type
    MenuButtonWebApp:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#menubuttonwebapp'
      description:
        'Represents a menu button, which launches a [Web
        App](https://core.telegram.org/bots/webapps).'
      type: object
      properties:
        type:
          description: "Type of the button, must be *web\\_app*"
          default: web_app
          type: string
        text:
          description: Text on the button
          type: string
        web_app:
          $ref: '#/components/schemas/WebAppInfo'
      required:
        - type
        - text
        - web_app
    MenuButtonDefault:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#menubuttondefault'
      description: Describes that no specific value for the menu button was set.
      type: object
      properties:
        type:
          description: 'Type of the button, must be *default*'
          default: default
          type: string
      required:
        - type
    ChatBoostSource:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboostsource'
      description:
        "This object describes the source of a chat boost. It can be one of\n\n*
        [ChatBoostSourcePremium](https://core.telegram.org/bots/api/#chatboostsourcepremium)\n*
        [ChatBoostSourceGiftCode](https://core.telegram.org/bots/api/#chatboostsourcegiftcode)\n*
        [ChatBoostSourceGiveaway](https://core.telegram.org/bots/api/#chatboostsourcegiveaway)"
      anyOf:
        - $ref: '#/components/schemas/ChatBoostSourcePremium'
        - $ref: '#/components/schemas/ChatBoostSourceGiftCode'
        - $ref: '#/components/schemas/ChatBoostSourceGiveaway'
    ChatBoostSourcePremium:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboostsourcepremium'
      description:
        The boost was obtained by subscribing to Telegram Premium or by gifting
        a Telegram Premium subscription to another user.
      type: object
      properties:
        source:
          description: 'Source of the boost, always “premium”'
          default: premium
          type: string
        user:
          $ref: '#/components/schemas/User'
      required:
        - source
        - user
    ChatBoostSourceGiftCode:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboostsourcegiftcode'
      description:
        The boost was obtained by the creation of Telegram Premium gift codes to
        boost a chat. Each such code boosts the chat 4 times for the duration of
        the corresponding Telegram Premium subscription.
      type: object
      properties:
        source:
          description: "Source of the boost, always “gift\\_code”"
          default: gift_code
          type: string
        user:
          $ref: '#/components/schemas/User'
      required:
        - source
        - user
    ChatBoostSourceGiveaway:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboostsourcegiveaway'
      description:
        "The boost was obtained by the creation of a Telegram Premium or a
        Telegram Star giveaway. This boosts the chat 4 times for the duration of
        the corresponding Telegram Premium subscription for Telegram Premium
        giveaways and *prize\\_star\\_count* / 500 times for one year for
        Telegram Star giveaways."
      type: object
      properties:
        source:
          description: 'Source of the boost, always “giveaway”'
          default: giveaway
          type: string
        giveaway_message_id:
          description:
            "Identifier of a message in the chat with the giveaway; the message
            could have been deleted already. May be 0 if the message isn't sent
            yet."
          type: integer
        user:
          $ref: '#/components/schemas/User'
        prize_star_count:
          description:
            '*Optional*. The number of Telegram Stars to be split between
            giveaway winners; for Telegram Star giveaways only'
          type: integer
        is_unclaimed:
          description:
            '*Optional*. True, if the giveaway was completed, but there was no
            user to win the prize'
          default: true
          type: boolean
      required:
        - source
        - giveaway_message_id
    ChatBoost:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboost'
      description: This object contains information about a chat boost.
      type: object
      properties:
        boost_id:
          description: Unique identifier of the boost
          type: string
        add_date:
          description: Point in time (Unix timestamp) when the chat was boosted
          type: integer
        expiration_date:
          description:
            "Point in time (Unix timestamp) when the boost will automatically
            expire, unless the booster's Telegram Premium subscription is
            prolonged"
          type: integer
        source:
          $ref: '#/components/schemas/ChatBoostSource'
      required:
        - boost_id
        - add_date
        - expiration_date
        - source
    ChatBoostUpdated:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboostupdated'
      description: This object represents a boost added to a chat or changed.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        boost:
          $ref: '#/components/schemas/ChatBoost'
      required:
        - chat
        - boost
    ChatBoostRemoved:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#chatboostremoved'
      description: This object represents a boost removed from a chat.
      type: object
      properties:
        chat:
          $ref: '#/components/schemas/Chat'
        boost_id:
          description: Unique identifier of the boost
          type: string
        remove_date:
          description: Point in time (Unix timestamp) when the boost was removed
          type: integer
        source:
          $ref: '#/components/schemas/ChatBoostSource'
      required:
        - chat
        - boost_id
        - remove_date
        - source
    UserChatBoosts:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#userchatboosts'
      description:
        This object represents a list of boosts added to a chat by a user.
      type: object
      properties:
        boosts:
          description: The list of boosts added to the chat by the user
          type: array
          items:
            $ref: '#/components/schemas/ChatBoost'
      required:
        - boosts
    BusinessConnection:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#businessconnection'
      description: Describes the connection of the bot with a business account.
      type: object
      properties:
        id:
          description: Unique identifier of the business connection
          type: string
        user:
          $ref: '#/components/schemas/User'
        user_chat_id:
          description:
            'Identifier of a private chat with the user who created the business
            connection. This number may have more than 32 significant bits and
            some programming languages may have difficulty/silent defects in
            interpreting it. But it has at most 52 significant bits, so a 64-bit
            integer or double-precision float type are safe for storing this
            identifier.'
          type: integer
        date:
          description: Date the connection was established in Unix time
          type: integer
        can_reply:
          description:
            'True, if the bot can act on behalf of the business account in chats
            that were active in the last 24 hours'
          type: boolean
        is_enabled:
          description: 'True, if the connection is active'
          type: boolean
      required:
        - id
        - user
        - user_chat_id
        - date
        - can_reply
        - is_enabled
    BusinessMessagesDeleted:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#businessmessagesdeleted'
      description:
        This object is received when messages are deleted from a connected
        business account.
      type: object
      properties:
        business_connection_id:
          description: Unique identifier of the business connection
          type: string
        chat:
          $ref: '#/components/schemas/Chat'
        message_ids:
          description:
            The list of identifiers of deleted messages in the chat of the
            business account
          type: array
          items:
            type: integer
      required:
        - business_connection_id
        - chat
        - message_ids
    ResponseParameters:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#responseparameters'
      description: Describes why a request was unsuccessful.
      type: object
      properties:
        migrate_to_chat_id:
          description:
            '*Optional*. The group has been migrated to a supergroup with the
            specified identifier. This number may have more than 32 significant
            bits and some programming languages may have difficulty/silent
            defects in interpreting it. But it has at most 52 significant bits,
            so a signed 64-bit integer or double-precision float type are safe
            for storing this identifier.'
          type: integer
        retry_after:
          description:
            '*Optional*. In case of exceeding flood control, the number of
            seconds left to wait before the request can be repeated'
          type: integer
    InputMedia:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputmedia'
      description:
        "This object represents the content of a media message to be sent. It
        should be one of\n\n*
        [InputMediaAnimation](https://core.telegram.org/bots/api/#inputmediaanimation)\n*
        [InputMediaDocument](https://core.telegram.org/bots/api/#inputmediadocument)\n*
        [InputMediaAudio](https://core.telegram.org/bots/api/#inputmediaaudio)\n*
        [InputMediaPhoto](https://core.telegram.org/bots/api/#inputmediaphoto)\n*
        [InputMediaVideo](https://core.telegram.org/bots/api/#inputmediavideo)"
      anyOf:
        - $ref: '#/components/schemas/InputMediaAnimation'
        - $ref: '#/components/schemas/InputMediaDocument'
        - $ref: '#/components/schemas/InputMediaAudio'
        - $ref: '#/components/schemas/InputMediaPhoto'
        - $ref: '#/components/schemas/InputMediaVideo'
    InputMediaPhoto:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputmediaphoto'
      description: Represents a photo to be sent.
      type: object
      properties:
        type:
          description: 'Type of the result, must be *photo*'
          default: photo
          type: string
        media:
          description:
            "File to send. Pass a file\\_id to send a file that exists on the
            Telegram servers (recommended), pass an HTTP URL for Telegram to get
            a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        caption:
          description:
            '*Optional*. Caption of the photo to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the photo caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        has_spoiler:
          description:
            '*Optional*. Pass *True* if the photo needs to be covered with a
            spoiler animation'
          type: boolean
      required:
        - type
        - media
    InputMediaVideo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputmediavideo'
      description: Represents a video to be sent.
      type: object
      properties:
        type:
          description: 'Type of the result, must be *video*'
          default: video
          type: string
        media:
          description:
            "File to send. Pass a file\\_id to send a file that exists on the
            Telegram servers (recommended), pass an HTTP URL for Telegram to get
            a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        thumbnail:
          description:
            "*Optional*. Thumbnail of the file sent; can be ignored if thumbnail
            generation for the file is supported server-side. The thumbnail
            should be in JPEG format and less than 200 kB in size. A thumbnail's
            width and height should not exceed 320. Ignored if the file is not
            uploaded using multipart/form-data. Thumbnails can't be reused and
            can be only uploaded as a new file, so you can pass
            “attach://\\<file\\_attach\\_name\\>” if the thumbnail was uploaded
            using multipart/form-data under \\<file\\_attach\\_name\\>. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        cover:
          description:
            "*Optional*. Cover for the video in the message. Pass a file\\_id to
            send a file that exists on the Telegram servers (recommended), pass
            an HTTP URL for Telegram to get a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        start_timestamp:
          description:
            '*Optional*. Start timestamp for the video in the message'
          type: integer
        caption:
          description:
            '*Optional*. Caption of the video to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the video caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        width:
          description: '*Optional*. Video width'
          type: integer
        height:
          description: '*Optional*. Video height'
          type: integer
        duration:
          description: '*Optional*. Video duration in seconds'
          type: integer
        supports_streaming:
          description:
            '*Optional*. Pass *True* if the uploaded video is suitable for
            streaming'
          type: boolean
        has_spoiler:
          description:
            '*Optional*. Pass *True* if the video needs to be covered with a
            spoiler animation'
          type: boolean
      required:
        - type
        - media
    InputMediaAnimation:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputmediaanimation'
      description:
        Represents an animation file (GIF or H.264/MPEG-4 AVC video without
        sound) to be sent.
      type: object
      properties:
        type:
          description: 'Type of the result, must be *animation*'
          default: animation
          type: string
        media:
          description:
            "File to send. Pass a file\\_id to send a file that exists on the
            Telegram servers (recommended), pass an HTTP URL for Telegram to get
            a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        thumbnail:
          description:
            "*Optional*. Thumbnail of the file sent; can be ignored if thumbnail
            generation for the file is supported server-side. The thumbnail
            should be in JPEG format and less than 200 kB in size. A thumbnail's
            width and height should not exceed 320. Ignored if the file is not
            uploaded using multipart/form-data. Thumbnails can't be reused and
            can be only uploaded as a new file, so you can pass
            “attach://\\<file\\_attach\\_name\\>” if the thumbnail was uploaded
            using multipart/form-data under \\<file\\_attach\\_name\\>. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        caption:
          description:
            '*Optional*. Caption of the animation to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the animation caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        width:
          description: '*Optional*. Animation width'
          type: integer
        height:
          description: '*Optional*. Animation height'
          type: integer
        duration:
          description: '*Optional*. Animation duration in seconds'
          type: integer
        has_spoiler:
          description:
            '*Optional*. Pass *True* if the animation needs to be covered with a
            spoiler animation'
          type: boolean
      required:
        - type
        - media
    InputMediaAudio:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputmediaaudio'
      description: Represents an audio file to be treated as music to be sent.
      type: object
      properties:
        type:
          description: 'Type of the result, must be *audio*'
          default: audio
          type: string
        media:
          description:
            "File to send. Pass a file\\_id to send a file that exists on the
            Telegram servers (recommended), pass an HTTP URL for Telegram to get
            a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        thumbnail:
          description:
            "*Optional*. Thumbnail of the file sent; can be ignored if thumbnail
            generation for the file is supported server-side. The thumbnail
            should be in JPEG format and less than 200 kB in size. A thumbnail's
            width and height should not exceed 320. Ignored if the file is not
            uploaded using multipart/form-data. Thumbnails can't be reused and
            can be only uploaded as a new file, so you can pass
            “attach://\\<file\\_attach\\_name\\>” if the thumbnail was uploaded
            using multipart/form-data under \\<file\\_attach\\_name\\>. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        caption:
          description:
            '*Optional*. Caption of the audio to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the audio caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        duration:
          description: '*Optional*. Duration of the audio in seconds'
          type: integer
        performer:
          description: '*Optional*. Performer of the audio'
          type: string
        title:
          description: '*Optional*. Title of the audio'
          type: string
      required:
        - type
        - media
    InputMediaDocument:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputmediadocument'
      description: Represents a general file to be sent.
      type: object
      properties:
        type:
          description: 'Type of the result, must be *document*'
          default: document
          type: string
        media:
          description:
            "File to send. Pass a file\\_id to send a file that exists on the
            Telegram servers (recommended), pass an HTTP URL for Telegram to get
            a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        thumbnail:
          description:
            "*Optional*. Thumbnail of the file sent; can be ignored if thumbnail
            generation for the file is supported server-side. The thumbnail
            should be in JPEG format and less than 200 kB in size. A thumbnail's
            width and height should not exceed 320. Ignored if the file is not
            uploaded using multipart/form-data. Thumbnails can't be reused and
            can be only uploaded as a new file, so you can pass
            “attach://\\<file\\_attach\\_name\\>” if the thumbnail was uploaded
            using multipart/form-data under \\<file\\_attach\\_name\\>. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        caption:
          description:
            '*Optional*. Caption of the document to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the document caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        disable_content_type_detection:
          description:
            '*Optional*. Disables automatic server-side content type detection
            for files uploaded using multipart/form-data. Always *True*, if the
            document is sent as part of an album.'
          type: boolean
      required:
        - type
        - media
    InputFile:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputfile'
      description:
        This object represents the contents of a file to be uploaded. Must be
        posted using multipart/form-data in the usual way that files are
        uploaded via the browser.
    InputPaidMedia:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputpaidmedia'
      description:
        "This object describes the paid media to be sent. Currently, it can be
        one of\n\n*
        [InputPaidMediaPhoto](https://core.telegram.org/bots/api/#inputpaidmediaphoto)\n*
        [InputPaidMediaVideo](https://core.telegram.org/bots/api/#inputpaidmediavideo)"
      anyOf:
        - $ref: '#/components/schemas/InputPaidMediaPhoto'
        - $ref: '#/components/schemas/InputPaidMediaVideo'
    InputPaidMediaPhoto:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputpaidmediaphoto'
      description: The paid media to send is a photo.
      type: object
      properties:
        type:
          description: 'Type of the media, must be *photo*'
          default: photo
          type: string
        media:
          description:
            "File to send. Pass a file\\_id to send a file that exists on the
            Telegram servers (recommended), pass an HTTP URL for Telegram to get
            a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
      required:
        - type
        - media
    InputPaidMediaVideo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputpaidmediavideo'
      description: The paid media to send is a video.
      type: object
      properties:
        type:
          description: 'Type of the media, must be *video*'
          default: video
          type: string
        media:
          description:
            "File to send. Pass a file\\_id to send a file that exists on the
            Telegram servers (recommended), pass an HTTP URL for Telegram to get
            a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        thumbnail:
          description:
            "*Optional*. Thumbnail of the file sent; can be ignored if thumbnail
            generation for the file is supported server-side. The thumbnail
            should be in JPEG format and less than 200 kB in size. A thumbnail's
            width and height should not exceed 320. Ignored if the file is not
            uploaded using multipart/form-data. Thumbnails can't be reused and
            can be only uploaded as a new file, so you can pass
            “attach://\\<file\\_attach\\_name\\>” if the thumbnail was uploaded
            using multipart/form-data under \\<file\\_attach\\_name\\>. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        cover:
          description:
            "*Optional*. Cover for the video in the message. Pass a file\\_id to
            send a file that exists on the Telegram servers (recommended), pass
            an HTTP URL for Telegram to get a file from the Internet, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. [More
            information on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          type: string
        start_timestamp:
          description:
            '*Optional*. Start timestamp for the video in the message'
          type: integer
        width:
          description: '*Optional*. Video width'
          type: integer
        height:
          description: '*Optional*. Video height'
          type: integer
        duration:
          description: '*Optional*. Video duration in seconds'
          type: integer
        supports_streaming:
          description:
            '*Optional*. Pass *True* if the uploaded video is suitable for
            streaming'
          type: boolean
      required:
        - type
        - media
    Sticker:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sticker'
      description: This object represents a sticker.
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        type:
          description:
            "Type of the sticker, currently one of “regular”, “mask”,
            “custom\\_emoji”. The type of the sticker is independent from its
            format, which is determined by the fields *is\\_animated* and
            *is\\_video*."
          type: string
          enum:
            - regular
            - mask
            - custom_emoji
        width:
          description: Sticker width
          type: integer
        height:
          description: Sticker height
          type: integer
        is_animated:
          description:
            '*True*, if the sticker is
            [animated](https://telegram.org/blog/animated-stickers)'
          type: boolean
        is_video:
          description:
            '*True*, if the sticker is a [video
            sticker](https://telegram.org/blog/video-stickers-better-reactions)'
          type: boolean
        thumbnail:
          $ref: '#/components/schemas/PhotoSize'
        emoji:
          description: '*Optional*. Emoji associated with the sticker'
          type: string
        set_name:
          description:
            '*Optional*. Name of the sticker set to which the sticker belongs'
          type: string
        premium_animation:
          $ref: '#/components/schemas/File'
        mask_position:
          $ref: '#/components/schemas/MaskPosition'
        custom_emoji_id:
          description:
            '*Optional*. For custom emoji stickers, unique identifier of the
            custom emoji'
          type: string
        needs_repainting:
          description:
            '*Optional*. *True*, if the sticker must be repainted to a text
            color in messages, the color of the Telegram Premium badge in emoji
            status, white color on chat photos, or another appropriate color in
            other places'
          default: true
          type: boolean
        file_size:
          description: '*Optional*. File size in bytes'
          type: integer
      required:
        - file_id
        - file_unique_id
        - type
        - width
        - height
        - is_animated
        - is_video
    StickerSet:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#stickerset'
      description: This object represents a sticker set.
      type: object
      properties:
        name:
          description: Sticker set name
          type: string
        title:
          description: Sticker set title
          type: string
        sticker_type:
          description:
            "Type of stickers in the set, currently one of “regular”, “mask”,
            “custom\\_emoji”"
          type: string
          enum:
            - regular
            - mask
            - custom_emoji
        stickers:
          description: List of all set stickers
          type: array
          items:
            $ref: '#/components/schemas/Sticker'
        thumbnail:
          $ref: '#/components/schemas/PhotoSize'
      required:
        - name
        - title
        - sticker_type
        - stickers
    MaskPosition:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#maskposition'
      description:
        This object describes the position on faces where a mask should be
        placed by default.
      type: object
      properties:
        point:
          description:
            'The part of the face relative to which the mask should be placed.
            One of “forehead”, “eyes”, “mouth”, or “chin”.'
          type: string
          enum:
            - forehead
            - eyes
            - mouth
            - chin
        x_shift:
          description:
            'Shift by X-axis measured in widths of the mask scaled to the face
            size, from left to right. For example, choosing -1.0 will place mask
            just to the left of the default mask position.'
          type: number
        y_shift:
          description:
            'Shift by Y-axis measured in heights of the mask scaled to the face
            size, from top to bottom. For example, 1.0 will place the mask just
            below the default mask position.'
          type: number
        scale:
          description:
            'Mask scaling coefficient. For example, 2.0 means double size.'
          type: number
      required:
        - point
        - x_shift
        - y_shift
        - scale
    InputSticker:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputsticker'
      description: This object describes a sticker to be added to a sticker set.
      type: object
      properties:
        sticker:
          description:
            "The added sticker. Pass a *file\\_id* as a String to send a file
            that already exists on the Telegram servers, pass an HTTP URL as a
            String for Telegram to get a file from the Internet, upload a new
            one using multipart/form-data, or pass
            “attach://\\<file\\_attach\\_name\\>” to upload a new one using
            multipart/form-data under \\<file\\_attach\\_name\\> name. Animated
            and video stickers can't be uploaded via HTTP URL. [More information
            on Sending Files
            »](https://core.telegram.org/bots/api/#sending-files)"
          anyOf:
            - $ref: '#/components/schemas/InputFile'
            - type: string
        format:
          description:
            'Format of the added sticker, must be one of “static” for a
            **.WEBP** or **.PNG** image, “animated” for a **.TGS** animation,
            “video” for a **.WEBM** video'
          type: string
          enum:
            - static
            - animated
            - video
        emoji_list:
          description: List of 1-20 emoji associated with the sticker
          type: array
          items:
            type: string
        mask_position:
          $ref: '#/components/schemas/MaskPosition'
        keywords:
          description:
            "*Optional*. List of 0-20 search keywords for the sticker with total
            length of up to 64 characters. For “regular” and “custom\\_emoji”
            stickers only."
          type: array
          items:
            type: string
      required:
        - sticker
        - format
        - emoji_list
    Gift:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#gift'
      description: This object represents a gift that can be sent by the bot.
      type: object
      properties:
        id:
          description: Unique identifier of the gift
          type: string
        sticker:
          $ref: '#/components/schemas/Sticker'
        star_count:
          description:
            The number of Telegram Stars that must be paid to send the sticker
          type: integer
        upgrade_star_count:
          description:
            '*Optional*. The number of Telegram Stars that must be paid to
            upgrade the gift to a unique one'
          type: integer
        total_count:
          description:
            '*Optional*. The total number of the gifts of this type that can be
            sent; for limited gifts only'
          type: integer
        remaining_count:
          description:
            '*Optional*. The number of remaining gifts of this type that can be
            sent; for limited gifts only'
          type: integer
      required:
        - id
        - sticker
        - star_count
    Gifts:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#gifts'
      description: This object represent a list of gifts.
      type: object
      properties:
        gifts:
          description: The list of gifts
          type: array
          items:
            $ref: '#/components/schemas/Gift'
      required:
        - gifts
    InlineQuery:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequery'
      description:
        'This object represents an incoming inline query. When the user sends an
        empty query, your bot could return some default or trending results.'
      type: object
      properties:
        id:
          description: Unique identifier for this query
          type: string
        from:
          $ref: '#/components/schemas/User'
        query:
          description: Text of the query (up to 256 characters)
          type: string
        offset:
          description:
            'Offset of the results to be returned, can be controlled by the bot'
          type: string
        chat_type:
          description:
            '*Optional*. Type of the chat from which the inline query was sent.
            Can be either “sender” for a private chat with the inline query
            sender, “private”, “group”, “supergroup”, or “channel”. The chat
            type should be always known for requests sent from official clients
            and most third-party clients, unless the request was sent from a
            secret chat'
          type: string
          enum:
            - sender
            - private
            - group
            - supergroup
            - channel
        location:
          $ref: '#/components/schemas/Location'
      required:
        - id
        - from
        - query
        - offset
    InlineQueryResultsButton:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultsbutton'
      description:
        This object represents a button to be shown above inline query results.
        You **must** use exactly one of the optional fields.
      type: object
      properties:
        text:
          description: Label text on the button
          type: string
        web_app:
          $ref: '#/components/schemas/WebAppInfo'
        start_parameter:
          description:
            "*Optional*.
            [Deep-linking](https://core.telegram.org/bots/features#deep-linking)
            parameter for the /start message sent to the bot when a user presses
            the button. 1-64 characters, only `A-Z`, `a-z`, `0-9`, `_` and `-`
            are allowed.  \n\n*Example:* An inline bot that sends YouTube videos
            can ask the user to connect the bot to their YouTube account to
            adapt search results accordingly. To do this, it displays a 'Connect
            your YouTube account' button above the results, or even before
            showing any. The user presses the button, switches to a private chat
            with the bot and, in doing so, passes a start parameter that
            instructs the bot to return an OAuth link. Once done, the bot can
            offer a
            [*switch\\_inline*](https://core.telegram.org/bots/api/#inlinekeyboardmarkup)
            button so that the user can easily return to the chat where they
            wanted to use the bot's inline capabilities."
          type: string
          minLength: 1
          maxLength: 64
      required:
        - text
    InlineQueryResult:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresult'
      description:
        "This object represents one result of an inline query. Telegram clients
        currently support results of the following 20 types:\n\n*
        [InlineQueryResultCachedAudio](https://core.telegram.org/bots/api/#inlinequeryresultcachedaudio)\n*
        [InlineQueryResultCachedDocument](https://core.telegram.org/bots/api/#inlinequeryresultcacheddocument)\n*
        [InlineQueryResultCachedGif](https://core.telegram.org/bots/api/#inlinequeryresultcachedgif)\n*
        [InlineQueryResultCachedMpeg4Gif](https://core.telegram.org/bots/api/#inlinequeryresultcachedmpeg4gif)\n*
        [InlineQueryResultCachedPhoto](https://core.telegram.org/bots/api/#inlinequeryresultcachedphoto)\n*
        [InlineQueryResultCachedSticker](https://core.telegram.org/bots/api/#inlinequeryresultcachedsticker)\n*
        [InlineQueryResultCachedVideo](https://core.telegram.org/bots/api/#inlinequeryresultcachedvideo)\n*
        [InlineQueryResultCachedVoice](https://core.telegram.org/bots/api/#inlinequeryresultcachedvoice)\n*
        [InlineQueryResultArticle](https://core.telegram.org/bots/api/#inlinequeryresultarticle)\n*
        [InlineQueryResultAudio](https://core.telegram.org/bots/api/#inlinequeryresultaudio)\n*
        [InlineQueryResultContact](https://core.telegram.org/bots/api/#inlinequeryresultcontact)\n*
        [InlineQueryResultGame](https://core.telegram.org/bots/api/#inlinequeryresultgame)\n*
        [InlineQueryResultDocument](https://core.telegram.org/bots/api/#inlinequeryresultdocument)\n*
        [InlineQueryResultGif](https://core.telegram.org/bots/api/#inlinequeryresultgif)\n*
        [InlineQueryResultLocation](https://core.telegram.org/bots/api/#inlinequeryresultlocation)\n*
        [InlineQueryResultMpeg4Gif](https://core.telegram.org/bots/api/#inlinequeryresultmpeg4gif)\n*
        [InlineQueryResultPhoto](https://core.telegram.org/bots/api/#inlinequeryresultphoto)\n*
        [InlineQueryResultVenue](https://core.telegram.org/bots/api/#inlinequeryresultvenue)\n*
        [InlineQueryResultVideo](https://core.telegram.org/bots/api/#inlinequeryresultvideo)\n*
        [InlineQueryResultVoice](https://core.telegram.org/bots/api/#inlinequeryresultvoice)"
      anyOf:
        - $ref: '#/components/schemas/InlineQueryResultCachedAudio'
        - $ref: '#/components/schemas/InlineQueryResultCachedDocument'
        - $ref: '#/components/schemas/InlineQueryResultCachedGif'
        - $ref: '#/components/schemas/InlineQueryResultCachedMpeg4Gif'
        - $ref: '#/components/schemas/InlineQueryResultCachedPhoto'
        - $ref: '#/components/schemas/InlineQueryResultCachedSticker'
        - $ref: '#/components/schemas/InlineQueryResultCachedVideo'
        - $ref: '#/components/schemas/InlineQueryResultCachedVoice'
        - $ref: '#/components/schemas/InlineQueryResultArticle'
        - $ref: '#/components/schemas/InlineQueryResultAudio'
        - $ref: '#/components/schemas/InlineQueryResultContact'
        - $ref: '#/components/schemas/InlineQueryResultGame'
        - $ref: '#/components/schemas/InlineQueryResultDocument'
        - $ref: '#/components/schemas/InlineQueryResultGif'
        - $ref: '#/components/schemas/InlineQueryResultLocation'
        - $ref: '#/components/schemas/InlineQueryResultMpeg4Gif'
        - $ref: '#/components/schemas/InlineQueryResultPhoto'
        - $ref: '#/components/schemas/InlineQueryResultVenue'
        - $ref: '#/components/schemas/InlineQueryResultVideo'
        - $ref: '#/components/schemas/InlineQueryResultVoice'
    InlineQueryResultArticle:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultarticle'
      description: Represents a link to an article or web page.
      type: object
      properties:
        type:
          description: 'Type of the result, must be *article*'
          default: article
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 Bytes'
          type: string
        title:
          description: Title of the result
          type: string
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        url:
          description: '*Optional*. URL of the result'
          type: string
        description:
          description: '*Optional*. Short description of the result'
          type: string
        thumbnail_url:
          description: '*Optional*. Url of the thumbnail for the result'
          type: string
        thumbnail_width:
          description: '*Optional*. Thumbnail width'
          type: integer
        thumbnail_height:
          description: '*Optional*. Thumbnail height'
          type: integer
      required:
        - type
        - id
        - title
        - input_message_content
    InlineQueryResultPhoto:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultphoto'
      description:
        "Represents a link to a photo. By default, this photo will be sent by
        the user with optional caption. Alternatively, you can use
        *input\\_message\\_content* to send a message with the specified content
        instead of the photo."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *photo*'
          default: photo
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        photo_url:
          description:
            A valid URL of the photo. Photo must be in **JPEG** format. Photo
            size must not exceed 5MB
          type: string
        thumbnail_url:
          description: URL of the thumbnail for the photo
          type: string
        photo_width:
          description: '*Optional*. Width of the photo'
          type: integer
        photo_height:
          description: '*Optional*. Height of the photo'
          type: integer
        title:
          description: '*Optional*. Title for the result'
          type: string
        description:
          description: '*Optional*. Short description of the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the photo to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the photo caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - photo_url
        - thumbnail_url
    InlineQueryResultGif:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultgif'
      description:
        "Represents a link to an animated GIF file. By default, this animated
        GIF file will be sent by the user with optional caption. Alternatively,
        you can use *input\\_message\\_content* to send a message with the
        specified content instead of the animation."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *gif*'
          default: gif
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        gif_url:
          description: A valid URL for the GIF file
          type: string
        gif_width:
          description: '*Optional*. Width of the GIF'
          type: integer
        gif_height:
          description: '*Optional*. Height of the GIF'
          type: integer
        gif_duration:
          description: '*Optional*. Duration of the GIF in seconds'
          type: integer
        thumbnail_url:
          description:
            URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for
            the result
          type: string
        thumbnail_mime_type:
          description:
            '*Optional*. MIME type of the thumbnail, must be one of
            “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”'
          default: image/jpeg
          type: string
          enum:
            - image/jpeg
            - image/gif
            - video/mp4
        title:
          description: '*Optional*. Title for the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the GIF file to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - gif_url
        - thumbnail_url
    InlineQueryResultMpeg4Gif:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultmpeg4gif'
      description:
        "Represents a link to a video animation (H.264/MPEG-4 AVC video without
        sound). By default, this animated MPEG-4 file will be sent by the user
        with optional caption. Alternatively, you can use
        *input\\_message\\_content* to send a message with the specified content
        instead of the animation."
      type: object
      properties:
        type:
          description: "Type of the result, must be *mpeg4\\_gif*"
          default: mpeg4_gif
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        mpeg4_url:
          description: A valid URL for the MPEG4 file
          type: string
        mpeg4_width:
          description: '*Optional*. Video width'
          type: integer
        mpeg4_height:
          description: '*Optional*. Video height'
          type: integer
        mpeg4_duration:
          description: '*Optional*. Video duration in seconds'
          type: integer
        thumbnail_url:
          description:
            URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for
            the result
          type: string
        thumbnail_mime_type:
          description:
            '*Optional*. MIME type of the thumbnail, must be one of
            “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”'
          default: image/jpeg
          type: string
          enum:
            - image/jpeg
            - image/gif
            - video/mp4
        title:
          description: '*Optional*. Title for the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the MPEG-4 file to be sent, 0-1024
            characters after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - mpeg4_url
        - thumbnail_url
    InlineQueryResultVideo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultvideo'
      description:
        "Represents a link to a page containing an embedded video player or a
        video file. By default, this video file will be sent by the user with an
        optional caption. Alternatively, you can use *input\\_message\\_content*
        to send a message with the specified content instead of the video.\n\nIf
        an InlineQueryResultVideo message contains an embedded video (e.g.,
        YouTube), you **must** replace its content using
        *input\\_message\\_content*."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *video*'
          default: video
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        video_url:
          description: A valid URL for the embedded video player or video file
          type: string
        mime_type:
          description:
            'MIME type of the content of the video URL, “text/html” or
            “video/mp4”'
          type: string
          enum:
            - text/html
            - video/mp4
        thumbnail_url:
          description: URL of the thumbnail (JPEG only) for the video
          type: string
        title:
          description: Title for the result
          type: string
        caption:
          description:
            '*Optional*. Caption of the video to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the video caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        video_width:
          description: '*Optional*. Video width'
          type: integer
        video_height:
          description: '*Optional*. Video height'
          type: integer
        video_duration:
          description: '*Optional*. Video duration in seconds'
          type: integer
        description:
          description: '*Optional*. Short description of the result'
          type: string
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - video_url
        - mime_type
        - thumbnail_url
        - title
    InlineQueryResultAudio:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultaudio'
      description:
        "Represents a link to an MP3 audio file. By default, this audio file
        will be sent by the user. Alternatively, you can use
        *input\\_message\\_content* to send a message with the specified content
        instead of the audio."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *audio*'
          default: audio
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        audio_url:
          description: A valid URL for the audio file
          type: string
        title:
          description: Title
          type: string
        caption:
          description:
            '*Optional*. Caption, 0-1024 characters after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the audio caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        performer:
          description: '*Optional*. Performer'
          type: string
        audio_duration:
          description: '*Optional*. Audio duration in seconds'
          type: integer
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - audio_url
        - title
    InlineQueryResultVoice:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultvoice'
      description:
        "Represents a link to a voice recording in an .OGG container encoded
        with OPUS. By default, this voice recording will be sent by the user.
        Alternatively, you can use *input\\_message\\_content* to send a message
        with the specified content instead of the the voice message."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *voice*'
          default: voice
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        voice_url:
          description: A valid URL for the voice recording
          type: string
        title:
          description: Recording title
          type: string
        caption:
          description:
            '*Optional*. Caption, 0-1024 characters after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the voice message caption.
            See [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        voice_duration:
          description: '*Optional*. Recording duration in seconds'
          type: integer
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - voice_url
        - title
    InlineQueryResultDocument:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultdocument'
      description:
        "Represents a link to a file. By default, this file will be sent by the
        user with an optional caption. Alternatively, you can use
        *input\\_message\\_content* to send a message with the specified content
        instead of the file. Currently, only **.PDF** and **.ZIP** files can be
        sent using this method."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *document*'
          default: document
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        title:
          description: Title for the result
          type: string
        caption:
          description:
            '*Optional*. Caption of the document to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the document caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        document_url:
          description: A valid URL for the file
          type: string
        mime_type:
          description:
            'MIME type of the content of the file, either “application/pdf” or
            “application/zip”'
          type: string
          enum:
            - application/pdf
            - application/zip
        description:
          description: '*Optional*. Short description of the result'
          type: string
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
        thumbnail_url:
          description:
            '*Optional*. URL of the thumbnail (JPEG only) for the file'
          type: string
        thumbnail_width:
          description: '*Optional*. Thumbnail width'
          type: integer
        thumbnail_height:
          description: '*Optional*. Thumbnail height'
          type: integer
      required:
        - type
        - id
        - title
        - document_url
        - mime_type
    InlineQueryResultLocation:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultlocation'
      description:
        "Represents a location on a map. By default, the location will be sent
        by the user. Alternatively, you can use *input\\_message\\_content* to
        send a message with the specified content instead of the location."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *location*'
          default: location
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 Bytes'
          type: string
        latitude:
          description: Location latitude in degrees
          type: number
        longitude:
          description: Location longitude in degrees
          type: number
        title:
          description: Location title
          type: string
        horizontal_accuracy:
          description:
            '*Optional*. The radius of uncertainty for the location, measured in
            meters; 0-1500'
          type: number
        live_period:
          description:
            '*Optional*. Period in seconds during which the location can be
            updated, should be between 60 and 86400, or 0x7FFFFFFF for live
            locations that can be edited indefinitely.'
          type: integer
        heading:
          description:
            '*Optional*. For live locations, a direction in which the user is
            moving, in degrees. Must be between 1 and 360 if specified.'
          type: integer
        proximity_alert_radius:
          description:
            '*Optional*. For live locations, a maximum distance for proximity
            alerts about approaching another chat member, in meters. Must be
            between 1 and 100000 if specified.'
          type: integer
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
        thumbnail_url:
          description: '*Optional*. Url of the thumbnail for the result'
          type: string
        thumbnail_width:
          description: '*Optional*. Thumbnail width'
          type: integer
        thumbnail_height:
          description: '*Optional*. Thumbnail height'
          type: integer
      required:
        - type
        - id
        - latitude
        - longitude
        - title
    InlineQueryResultVenue:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultvenue'
      description:
        "Represents a venue. By default, the venue will be sent by the user.
        Alternatively, you can use *input\\_message\\_content* to send a message
        with the specified content instead of the venue."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *venue*'
          default: venue
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 Bytes'
          type: string
        latitude:
          description: Latitude of the venue location in degrees
          type: number
        longitude:
          description: Longitude of the venue location in degrees
          type: number
        title:
          description: Title of the venue
          type: string
        address:
          description: Address of the venue
          type: string
        foursquare_id:
          description: '*Optional*. Foursquare identifier of the venue if known'
          type: string
        foursquare_type:
          description:
            "*Optional*. Foursquare type of the venue, if known. (For example,
            “arts\\_entertainment/default”, “arts\\_entertainment/aquarium” or
            “food/icecream”.)"
          type: string
        google_place_id:
          description: '*Optional*. Google Places identifier of the venue'
          type: string
        google_place_type:
          description:
            '*Optional*. Google Places type of the venue. (See [supported
            types](https://developers.google.com/places/web-service/supported_types).)'
          type: string
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
        thumbnail_url:
          description: '*Optional*. Url of the thumbnail for the result'
          type: string
        thumbnail_width:
          description: '*Optional*. Thumbnail width'
          type: integer
        thumbnail_height:
          description: '*Optional*. Thumbnail height'
          type: integer
      required:
        - type
        - id
        - latitude
        - longitude
        - title
        - address
    InlineQueryResultContact:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcontact'
      description:
        "Represents a contact with a phone number. By default, this contact will
        be sent by the user. Alternatively, you can use
        *input\\_message\\_content* to send a message with the specified content
        instead of the contact."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *contact*'
          default: contact
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 Bytes'
          type: string
        phone_number:
          description: "Contact's phone number"
          type: string
        first_name:
          description: "Contact's first name"
          type: string
        last_name:
          description: "*Optional*. Contact's last name"
          type: string
        vcard:
          description:
            '*Optional*. Additional data about the contact in the form of a
            [vCard](https://en.wikipedia.org/wiki/VCard), 0-2048 bytes'
          type: string
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
        thumbnail_url:
          description: '*Optional*. Url of the thumbnail for the result'
          type: string
        thumbnail_width:
          description: '*Optional*. Thumbnail width'
          type: integer
        thumbnail_height:
          description: '*Optional*. Thumbnail height'
          type: integer
      required:
        - type
        - id
        - phone_number
        - first_name
    InlineQueryResultGame:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultgame'
      description:
        'Represents a [Game](https://core.telegram.org/bots/api/#games).'
      type: object
      properties:
        type:
          description: 'Type of the result, must be *game*'
          default: game
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        game_short_name:
          description: Short name of the game
          type: string
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
      required:
        - type
        - id
        - game_short_name
    InlineQueryResultCachedPhoto:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcachedphoto'
      description:
        "Represents a link to a photo stored on the Telegram servers. By
        default, this photo will be sent by the user with an optional caption.
        Alternatively, you can use *input\\_message\\_content* to send a message
        with the specified content instead of the photo."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *photo*'
          default: photo
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        photo_file_id:
          description: A valid file identifier of the photo
          type: string
        title:
          description: '*Optional*. Title for the result'
          type: string
        description:
          description: '*Optional*. Short description of the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the photo to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the photo caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - photo_file_id
    InlineQueryResultCachedGif:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcachedgif'
      description:
        "Represents a link to an animated GIF file stored on the Telegram
        servers. By default, this animated GIF file will be sent by the user
        with an optional caption. Alternatively, you can use
        *input\\_message\\_content* to send a message with specified content
        instead of the animation."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *gif*'
          default: gif
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        gif_file_id:
          description: A valid file identifier for the GIF file
          type: string
        title:
          description: '*Optional*. Title for the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the GIF file to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - gif_file_id
    InlineQueryResultCachedMpeg4Gif:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcachedmpeg4gif'
      description:
        "Represents a link to a video animation (H.264/MPEG-4 AVC video without
        sound) stored on the Telegram servers. By default, this animated MPEG-4
        file will be sent by the user with an optional caption. Alternatively,
        you can use *input\\_message\\_content* to send a message with the
        specified content instead of the animation."
      type: object
      properties:
        type:
          description: "Type of the result, must be *mpeg4\\_gif*"
          default: mpeg4_gif
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        mpeg4_file_id:
          description: A valid file identifier for the MPEG4 file
          type: string
        title:
          description: '*Optional*. Title for the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the MPEG-4 file to be sent, 0-1024
            characters after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - mpeg4_file_id
    InlineQueryResultCachedSticker:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcachedsticker'
      description:
        "Represents a link to a sticker stored on the Telegram servers. By
        default, this sticker will be sent by the user. Alternatively, you can
        use *input\\_message\\_content* to send a message with the specified
        content instead of the sticker."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *sticker*'
          default: sticker
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        sticker_file_id:
          description: A valid file identifier of the sticker
          type: string
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - sticker_file_id
    InlineQueryResultCachedDocument:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcacheddocument'
      description:
        "Represents a link to a file stored on the Telegram servers. By default,
        this file will be sent by the user with an optional caption.
        Alternatively, you can use *input\\_message\\_content* to send a message
        with the specified content instead of the file."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *document*'
          default: document
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        title:
          description: Title for the result
          type: string
        document_file_id:
          description: A valid file identifier for the file
          type: string
        description:
          description: '*Optional*. Short description of the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the document to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the document caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - title
        - document_file_id
    InlineQueryResultCachedVideo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcachedvideo'
      description:
        "Represents a link to a video file stored on the Telegram servers. By
        default, this video file will be sent by the user with an optional
        caption. Alternatively, you can use *input\\_message\\_content* to send
        a message with the specified content instead of the video."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *video*'
          default: video
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        video_file_id:
          description: A valid file identifier for the video file
          type: string
        title:
          description: Title for the result
          type: string
        description:
          description: '*Optional*. Short description of the result'
          type: string
        caption:
          description:
            '*Optional*. Caption of the video to be sent, 0-1024 characters
            after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the video caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        show_caption_above_media:
          description:
            '*Optional*. Pass *True*, if the caption must be shown above the
            message media'
          type: boolean
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - video_file_id
        - title
    InlineQueryResultCachedVoice:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcachedvoice'
      description:
        "Represents a link to a voice message stored on the Telegram servers. By
        default, this voice message will be sent by the user. Alternatively, you
        can use *input\\_message\\_content* to send a message with the specified
        content instead of the voice message."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *voice*'
          default: voice
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        voice_file_id:
          description: A valid file identifier for the voice message
          type: string
        title:
          description: Voice message title
          type: string
        caption:
          description:
            '*Optional*. Caption, 0-1024 characters after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the voice message caption.
            See [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - voice_file_id
        - title
    InlineQueryResultCachedAudio:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inlinequeryresultcachedaudio'
      description:
        "Represents a link to an MP3 audio file stored on the Telegram servers.
        By default, this audio file will be sent by the user. Alternatively, you
        can use *input\\_message\\_content* to send a message with the specified
        content instead of the audio."
      type: object
      properties:
        type:
          description: 'Type of the result, must be *audio*'
          default: audio
          type: string
        id:
          description: 'Unique identifier for this result, 1-64 bytes'
          type: string
        audio_file_id:
          description: A valid file identifier for the audio file
          type: string
        caption:
          description:
            '*Optional*. Caption, 0-1024 characters after entities parsing'
          type: string
          minLength: 0
          maxLength: 1024
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the audio caption. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        caption_entities:
          description:
            "*Optional*. List of special entities that appear in the caption,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        reply_markup:
          $ref: '#/components/schemas/InlineKeyboardMarkup'
        input_message_content:
          $ref: '#/components/schemas/InputMessageContent'
      required:
        - type
        - id
        - audio_file_id
    InputMessageContent:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputmessagecontent'
      description:
        "This object represents the content of a message to be sent as a result
        of an inline query. Telegram clients currently support the following 5
        types:\n\n*
        [InputTextMessageContent](https://core.telegram.org/bots/api/#inputtextmessagecontent)\n*
        [InputLocationMessageContent](https://core.telegram.org/bots/api/#inputlocationmessagecontent)\n*
        [InputVenueMessageContent](https://core.telegram.org/bots/api/#inputvenuemessagecontent)\n*
        [InputContactMessageContent](https://core.telegram.org/bots/api/#inputcontactmessagecontent)\n*
        [InputInvoiceMessageContent](https://core.telegram.org/bots/api/#inputinvoicemessagecontent)"
      anyOf:
        - $ref: '#/components/schemas/InputTextMessageContent'
        - $ref: '#/components/schemas/InputLocationMessageContent'
        - $ref: '#/components/schemas/InputVenueMessageContent'
        - $ref: '#/components/schemas/InputContactMessageContent'
        - $ref: '#/components/schemas/InputInvoiceMessageContent'
    InputTextMessageContent:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputtextmessagecontent'
      description:
        'Represents the
        [content](https://core.telegram.org/bots/api/#inputmessagecontent) of a
        text message to be sent as the result of an inline query.'
      type: object
      properties:
        message_text:
          description: 'Text of the message to be sent, 1-4096 characters'
          type: string
          minLength: 1
          maxLength: 4096
        parse_mode:
          description:
            '*Optional*. Mode for parsing entities in the message text. See
            [formatting
            options](https://core.telegram.org/bots/api/#formatting-options) for
            more details.'
          type: string
        entities:
          description:
            "*Optional*. List of special entities that appear in message text,
            which can be specified instead of *parse\\_mode*"
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        link_preview_options:
          $ref: '#/components/schemas/LinkPreviewOptions'
      required:
        - message_text
    InputLocationMessageContent:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputlocationmessagecontent'
      description:
        'Represents the
        [content](https://core.telegram.org/bots/api/#inputmessagecontent) of a
        location message to be sent as the result of an inline query.'
      type: object
      properties:
        latitude:
          description: Latitude of the location in degrees
          type: number
        longitude:
          description: Longitude of the location in degrees
          type: number
        horizontal_accuracy:
          description:
            '*Optional*. The radius of uncertainty for the location, measured in
            meters; 0-1500'
          type: number
        live_period:
          description:
            '*Optional*. Period in seconds during which the location can be
            updated, should be between 60 and 86400, or 0x7FFFFFFF for live
            locations that can be edited indefinitely.'
          type: integer
        heading:
          description:
            '*Optional*. For live locations, a direction in which the user is
            moving, in degrees. Must be between 1 and 360 if specified.'
          type: integer
        proximity_alert_radius:
          description:
            '*Optional*. For live locations, a maximum distance for proximity
            alerts about approaching another chat member, in meters. Must be
            between 1 and 100000 if specified.'
          type: integer
      required:
        - latitude
        - longitude
    InputVenueMessageContent:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputvenuemessagecontent'
      description:
        'Represents the
        [content](https://core.telegram.org/bots/api/#inputmessagecontent) of a
        venue message to be sent as the result of an inline query.'
      type: object
      properties:
        latitude:
          description: Latitude of the venue in degrees
          type: number
        longitude:
          description: Longitude of the venue in degrees
          type: number
        title:
          description: Name of the venue
          type: string
        address:
          description: Address of the venue
          type: string
        foursquare_id:
          description:
            '*Optional*. Foursquare identifier of the venue, if known'
          type: string
        foursquare_type:
          description:
            "*Optional*. Foursquare type of the venue, if known. (For example,
            “arts\\_entertainment/default”, “arts\\_entertainment/aquarium” or
            “food/icecream”.)"
          type: string
        google_place_id:
          description: '*Optional*. Google Places identifier of the venue'
          type: string
        google_place_type:
          description:
            '*Optional*. Google Places type of the venue. (See [supported
            types](https://developers.google.com/places/web-service/supported_types).)'
          type: string
      required:
        - latitude
        - longitude
        - title
        - address
    InputContactMessageContent:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputcontactmessagecontent'
      description:
        'Represents the
        [content](https://core.telegram.org/bots/api/#inputmessagecontent) of a
        contact message to be sent as the result of an inline query.'
      type: object
      properties:
        phone_number:
          description: "Contact's phone number"
          type: string
        first_name:
          description: "Contact's first name"
          type: string
        last_name:
          description: "*Optional*. Contact's last name"
          type: string
        vcard:
          description:
            '*Optional*. Additional data about the contact in the form of a
            [vCard](https://en.wikipedia.org/wiki/VCard), 0-2048 bytes'
          type: string
      required:
        - phone_number
        - first_name
    InputInvoiceMessageContent:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#inputinvoicemessagecontent'
      description:
        'Represents the
        [content](https://core.telegram.org/bots/api/#inputmessagecontent) of an
        invoice message to be sent as the result of an inline query.'
      type: object
      properties:
        title:
          description: 'Product name, 1-32 characters'
          type: string
          minLength: 1
          maxLength: 32
        description:
          description: 'Product description, 1-255 characters'
          type: string
          minLength: 1
          maxLength: 255
        payload:
          description:
            'Bot-defined invoice payload, 1-128 bytes. This will not be
            displayed to the user, use it for your internal processes.'
          type: string
        provider_token:
          description:
            '*Optional*. Payment provider token, obtained via
            [@BotFather](https://t.me/botfather). Pass an empty string for
            payments in [Telegram Stars](https://t.me/BotNews/90).'
          type: string
        currency:
          description:
            'Three-letter ISO 4217 currency code, see [more on
            currencies](https://core.telegram.org/bots/payments#supported-currencies).
            Pass “XTR” for payments in [Telegram
            Stars](https://t.me/BotNews/90).'
          type: string
        prices:
          description:
            'Price breakdown, a JSON-serialized list of components (e.g. product
            price, tax, discount, delivery cost, delivery tax, bonus, etc.).
            Must contain exactly one item for payments in [Telegram
            Stars](https://t.me/BotNews/90).'
          type: array
          items:
            $ref: '#/components/schemas/LabeledPrice'
        max_tip_amount:
          description:
            '*Optional*. The maximum accepted amount for tips in the *smallest
            units* of the currency (integer, **not** float/double). For example,
            for a maximum tip of `US$ 1.45` pass `max_tip_amount = 145`. See the
            *exp* parameter in
            [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
            it shows the number of digits past the decimal point for each
            currency (2 for the majority of currencies). Defaults to 0. Not
            supported for payments in [Telegram Stars](https://t.me/BotNews/90).'
          default: 0
          type: integer
        suggested_tip_amounts:
          description:
            "*Optional*. A JSON-serialized array of suggested amounts of tip in
            the *smallest units* of the currency (integer, **not**
            float/double). At most 4 suggested tip amounts can be specified. The
            suggested tip amounts must be positive, passed in a strictly
            increased order and must not exceed *max\\_tip\\_amount*."
          type: array
          items:
            type: integer
        provider_data:
          description:
            '*Optional*. A JSON-serialized object for data about the invoice,
            which will be shared with the payment provider. A detailed
            description of the required fields should be provided by the payment
            provider.'
          type: string
        photo_url:
          description:
            '*Optional*. URL of the product photo for the invoice. Can be a
            photo of the goods or a marketing image for a service.'
          type: string
        photo_size:
          description: '*Optional*. Photo size in bytes'
          type: integer
        photo_width:
          description: '*Optional*. Photo width'
          type: integer
        photo_height:
          description: '*Optional*. Photo height'
          type: integer
        need_name:
          description:
            "*Optional*. Pass *True* if you require the user's full name to
            complete the order. Ignored for payments in [Telegram
            Stars](https://t.me/BotNews/90)."
          type: boolean
        need_phone_number:
          description:
            "*Optional*. Pass *True* if you require the user's phone number to
            complete the order. Ignored for payments in [Telegram
            Stars](https://t.me/BotNews/90)."
          type: boolean
        need_email:
          description:
            "*Optional*. Pass *True* if you require the user's email address to
            complete the order. Ignored for payments in [Telegram
            Stars](https://t.me/BotNews/90)."
          type: boolean
        need_shipping_address:
          description:
            "*Optional*. Pass *True* if you require the user's shipping address
            to complete the order. Ignored for payments in [Telegram
            Stars](https://t.me/BotNews/90)."
          type: boolean
        send_phone_number_to_provider:
          description:
            "*Optional*. Pass *True* if the user's phone number should be sent
            to the provider. Ignored for payments in [Telegram
            Stars](https://t.me/BotNews/90)."
          type: boolean
        send_email_to_provider:
          description:
            "*Optional*. Pass *True* if the user's email address should be sent
            to the provider. Ignored for payments in [Telegram
            Stars](https://t.me/BotNews/90)."
          type: boolean
        is_flexible:
          description:
            '*Optional*. Pass *True* if the final price depends on the shipping
            method. Ignored for payments in [Telegram
            Stars](https://t.me/BotNews/90).'
          type: boolean
      required:
        - title
        - description
        - payload
        - currency
        - prices
    ChosenInlineResult:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#choseninlineresult'
      description:
        'Represents a
        [result](https://core.telegram.org/bots/api/#inlinequeryresult) of an
        inline query that was chosen by the user and sent to their chat partner.'
      type: object
      properties:
        result_id:
          description: The unique identifier for the result that was chosen
          type: string
        from:
          $ref: '#/components/schemas/User'
        location:
          $ref: '#/components/schemas/Location'
        inline_message_id:
          description:
            '*Optional*. Identifier of the sent inline message. Available only
            if there is an [inline
            keyboard](https://core.telegram.org/bots/api/#inlinekeyboardmarkup)
            attached to the message. Will be also received in [callback
            queries](https://core.telegram.org/bots/api/#callbackquery) and can
            be used to
            [edit](https://core.telegram.org/bots/api/#updating-messages) the
            message.'
          type: string
        query:
          description: The query that was used to obtain the result
          type: string
      required:
        - result_id
        - from
        - query
    SentWebAppMessage:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#sentwebappmessage'
      description:
        'Describes an inline message sent by a [Web
        App](https://core.telegram.org/bots/webapps) on behalf of a user.'
      type: object
      properties:
        inline_message_id:
          description:
            '*Optional*. Identifier of the sent inline message. Available only
            if there is an [inline
            keyboard](https://core.telegram.org/bots/api/#inlinekeyboardmarkup)
            attached to the message.'
          type: string
    PreparedInlineMessage:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#preparedinlinemessage'
      description:
        Describes an inline message to be sent by a user of a Mini App.
      type: object
      properties:
        id:
          description: Unique identifier of the prepared message
          type: string
        expiration_date:
          description:
            'Expiration date of the prepared message, in Unix time. Expired
            prepared messages can no longer be used'
          type: integer
      required:
        - id
        - expiration_date
    LabeledPrice:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#labeledprice'
      description:
        This object represents a portion of the price for goods or services.
      type: object
      properties:
        label:
          description: Portion label
          type: string
        amount:
          description:
            'Price of the product in the *smallest units* of the
            [currency](https://core.telegram.org/bots/payments#supported-currencies)
            (integer, **not** float/double). For example, for a price of `US$
            1.45` pass `amount = 145`. See the *exp* parameter in
            [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
            it shows the number of digits past the decimal point for each
            currency (2 for the majority of currencies).'
          type: integer
      required:
        - label
        - amount
    Invoice:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#invoice'
      description: This object contains basic information about an invoice.
      type: object
      properties:
        title:
          description: Product name
          type: string
        description:
          description: Product description
          type: string
        start_parameter:
          description:
            Unique bot deep-linking parameter that can be used to generate this
            invoice
          type: string
        currency:
          description:
            'Three-letter ISO 4217
            [currency](https://core.telegram.org/bots/payments#supported-currencies)
            code, or “XTR” for payments in [Telegram
            Stars](https://t.me/BotNews/90)'
          type: string
        total_amount:
          description:
            'Total price in the *smallest units* of the currency (integer,
            **not** float/double). For example, for a price of `US$ 1.45` pass
            `amount = 145`. See the *exp* parameter in
            [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
            it shows the number of digits past the decimal point for each
            currency (2 for the majority of currencies).'
          type: integer
      required:
        - title
        - description
        - start_parameter
        - currency
        - total_amount
    ShippingAddress:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#shippingaddress'
      description: This object represents a shipping address.
      type: object
      properties:
        country_code:
          description:
            'Two-letter [ISO 3166-1
            alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country
            code'
          type: string
        state:
          description: 'State, if applicable'
          type: string
        city:
          description: City
          type: string
        street_line1:
          description: First line for the address
          type: string
        street_line2:
          description: Second line for the address
          type: string
        post_code:
          description: Address post code
          type: string
      required:
        - country_code
        - state
        - city
        - street_line1
        - street_line2
        - post_code
    OrderInfo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#orderinfo'
      description: This object represents information about an order.
      type: object
      properties:
        name:
          description: '*Optional*. User name'
          type: string
        phone_number:
          description: "*Optional*. User's phone number"
          type: string
        email:
          description: '*Optional*. User email'
          type: string
        shipping_address:
          $ref: '#/components/schemas/ShippingAddress'
    ShippingOption:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#shippingoption'
      description: This object represents one shipping option.
      type: object
      properties:
        id:
          description: Shipping option identifier
          type: string
        title:
          description: Option title
          type: string
        prices:
          description: List of price portions
          type: array
          items:
            $ref: '#/components/schemas/LabeledPrice'
      required:
        - id
        - title
        - prices
    SuccessfulPayment:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#successfulpayment'
      description:
        "This object contains basic information about a successful payment. Note
        that if the buyer initiates a chargeback with the relevant payment
        provider following this transaction, the funds may be debited from your
        balance. This is outside of Telegram's control."
      type: object
      properties:
        currency:
          description:
            'Three-letter ISO 4217
            [currency](https://core.telegram.org/bots/payments#supported-currencies)
            code, or “XTR” for payments in [Telegram
            Stars](https://t.me/BotNews/90)'
          type: string
        total_amount:
          description:
            'Total price in the *smallest units* of the currency (integer,
            **not** float/double). For example, for a price of `US$ 1.45` pass
            `amount = 145`. See the *exp* parameter in
            [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
            it shows the number of digits past the decimal point for each
            currency (2 for the majority of currencies).'
          type: integer
        invoice_payload:
          description: Bot-specified invoice payload
          type: string
        subscription_expiration_date:
          description:
            '*Optional*. Expiration date of the subscription, in Unix time; for
            recurring payments only'
          type: integer
        is_recurring:
          description:
            '*Optional*. True, if the payment is a recurring payment for a
            subscription'
          default: true
          type: boolean
        is_first_recurring:
          description:
            '*Optional*. True, if the payment is the first payment for a
            subscription'
          default: true
          type: boolean
        shipping_option_id:
          description:
            '*Optional*. Identifier of the shipping option chosen by the user'
          type: string
        order_info:
          $ref: '#/components/schemas/OrderInfo'
        telegram_payment_charge_id:
          description: Telegram payment identifier
          type: string
        provider_payment_charge_id:
          description: Provider payment identifier
          type: string
      required:
        - currency
        - total_amount
        - invoice_payload
        - telegram_payment_charge_id
        - provider_payment_charge_id
    RefundedPayment:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#refundedpayment'
      description:
        This object contains basic information about a refunded payment.
      type: object
      properties:
        currency:
          description:
            'Three-letter ISO 4217
            [currency](https://core.telegram.org/bots/payments#supported-currencies)
            code, or “XTR” for payments in [Telegram
            Stars](https://t.me/BotNews/90). Currently, always “XTR”'
          default: XTR
          type: string
        total_amount:
          description:
            'Total refunded price in the *smallest units* of the currency
            (integer, **not** float/double). For example, for a price of `US$
            1.45`, `total_amount = 145`. See the *exp* parameter in
            [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
            it shows the number of digits past the decimal point for each
            currency (2 for the majority of currencies).'
          type: integer
        invoice_payload:
          description: Bot-specified invoice payload
          type: string
        telegram_payment_charge_id:
          description: Telegram payment identifier
          type: string
        provider_payment_charge_id:
          description: '*Optional*. Provider payment identifier'
          type: string
      required:
        - currency
        - total_amount
        - invoice_payload
        - telegram_payment_charge_id
    ShippingQuery:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#shippingquery'
      description:
        This object contains information about an incoming shipping query.
      type: object
      properties:
        id:
          description: Unique query identifier
          type: string
        from:
          $ref: '#/components/schemas/User'
        invoice_payload:
          description: Bot-specified invoice payload
          type: string
        shipping_address:
          $ref: '#/components/schemas/ShippingAddress'
      required:
        - id
        - from
        - invoice_payload
        - shipping_address
    PreCheckoutQuery:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#precheckoutquery'
      description:
        This object contains information about an incoming pre-checkout query.
      type: object
      properties:
        id:
          description: Unique query identifier
          type: string
        from:
          $ref: '#/components/schemas/User'
        currency:
          description:
            'Three-letter ISO 4217
            [currency](https://core.telegram.org/bots/payments#supported-currencies)
            code, or “XTR” for payments in [Telegram
            Stars](https://t.me/BotNews/90)'
          type: string
        total_amount:
          description:
            'Total price in the *smallest units* of the currency (integer,
            **not** float/double). For example, for a price of `US$ 1.45` pass
            `amount = 145`. See the *exp* parameter in
            [currencies.json](https://core.telegram.org/bots/payments/currencies.json),
            it shows the number of digits past the decimal point for each
            currency (2 for the majority of currencies).'
          type: integer
        invoice_payload:
          description: Bot-specified invoice payload
          type: string
        shipping_option_id:
          description:
            '*Optional*. Identifier of the shipping option chosen by the user'
          type: string
        order_info:
          $ref: '#/components/schemas/OrderInfo'
      required:
        - id
        - from
        - currency
        - total_amount
        - invoice_payload
    PaidMediaPurchased:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#paidmediapurchased'
      description: This object contains information about a paid media purchase.
      type: object
      properties:
        from:
          $ref: '#/components/schemas/User'
        paid_media_payload:
          description: Bot-specified paid media payload
          type: string
      required:
        - from
        - paid_media_payload
    RevenueWithdrawalState:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#revenuewithdrawalstate'
      description:
        "This object describes the state of a revenue withdrawal operation.
        Currently, it can be one of\n\n*
        [RevenueWithdrawalStatePending](https://core.telegram.org/bots/api/#revenuewithdrawalstatepending)\n*
        [RevenueWithdrawalStateSucceeded](https://core.telegram.org/bots/api/#revenuewithdrawalstatesucceeded)\n*
        [RevenueWithdrawalStateFailed](https://core.telegram.org/bots/api/#revenuewithdrawalstatefailed)"
      anyOf:
        - $ref: '#/components/schemas/RevenueWithdrawalStatePending'
        - $ref: '#/components/schemas/RevenueWithdrawalStateSucceeded'
        - $ref: '#/components/schemas/RevenueWithdrawalStateFailed'
    RevenueWithdrawalStatePending:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#revenuewithdrawalstatepending'
      description: The withdrawal is in progress.
      type: object
      properties:
        type:
          description: 'Type of the state, always “pending”'
          default: pending
          type: string
      required:
        - type
    RevenueWithdrawalStateSucceeded:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#revenuewithdrawalstatesucceeded'
      description: The withdrawal succeeded.
      type: object
      properties:
        type:
          description: 'Type of the state, always “succeeded”'
          default: succeeded
          type: string
        date:
          description: Date the withdrawal was completed in Unix time
          type: integer
        url:
          description: An HTTPS URL that can be used to see transaction details
          type: string
      required:
        - type
        - date
        - url
    RevenueWithdrawalStateFailed:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#revenuewithdrawalstatefailed'
      description: The withdrawal failed and the transaction was refunded.
      type: object
      properties:
        type:
          description: 'Type of the state, always “failed”'
          default: failed
          type: string
      required:
        - type
    AffiliateInfo:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#affiliateinfo'
      description:
        Contains information about the affiliate that received a commission via
        this transaction.
      type: object
      properties:
        affiliate_user:
          $ref: '#/components/schemas/User'
        affiliate_chat:
          $ref: '#/components/schemas/Chat'
        commission_per_mille:
          description:
            The number of Telegram Stars received by the affiliate for each 1000
            Telegram Stars received by the bot from referred users
          type: integer
        amount:
          description:
            'Integer amount of Telegram Stars received by the affiliate from the
            transaction, rounded to 0; can be negative for refunds'
          type: integer
        nanostar_amount:
          description:
            '*Optional*. The number of 1/1000000000 shares of Telegram Stars
            received by the affiliate; from -999999999 to 999999999; can be
            negative for refunds'
          type: integer
      required:
        - commission_per_mille
        - amount
    TransactionPartner:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartner'
      description:
        "This object describes the source of a transaction, or its recipient for
        outgoing transactions. Currently, it can be one of\n\n*
        [TransactionPartnerUser](https://core.telegram.org/bots/api/#transactionpartneruser)\n*
        [TransactionPartnerChat](https://core.telegram.org/bots/api/#transactionpartnerchat)\n*
        [TransactionPartnerAffiliateProgram](https://core.telegram.org/bots/api/#transactionpartneraffiliateprogram)\n*
        [TransactionPartnerFragment](https://core.telegram.org/bots/api/#transactionpartnerfragment)\n*
        [TransactionPartnerTelegramAds](https://core.telegram.org/bots/api/#transactionpartnertelegramads)\n*
        [TransactionPartnerTelegramApi](https://core.telegram.org/bots/api/#transactionpartnertelegramapi)\n*
        [TransactionPartnerOther](https://core.telegram.org/bots/api/#transactionpartnerother)"
      anyOf:
        - $ref: '#/components/schemas/TransactionPartnerUser'
        - $ref: '#/components/schemas/TransactionPartnerChat'
        - $ref: '#/components/schemas/TransactionPartnerAffiliateProgram'
        - $ref: '#/components/schemas/TransactionPartnerFragment'
        - $ref: '#/components/schemas/TransactionPartnerTelegramAds'
        - $ref: '#/components/schemas/TransactionPartnerTelegramApi'
        - $ref: '#/components/schemas/TransactionPartnerOther'
    TransactionPartnerUser:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartneruser'
      description: Describes a transaction with a user.
      type: object
      properties:
        type:
          description: 'Type of the transaction partner, always “user”'
          default: user
          type: string
        user:
          $ref: '#/components/schemas/User'
        affiliate:
          $ref: '#/components/schemas/AffiliateInfo'
        invoice_payload:
          description: '*Optional*. Bot-specified invoice payload'
          type: string
        subscription_period:
          description: '*Optional*. The duration of the paid subscription'
          type: integer
        paid_media:
          description:
            '*Optional*. Information about the paid media bought by the user'
          type: array
          items:
            $ref: '#/components/schemas/PaidMedia'
        paid_media_payload:
          description: '*Optional*. Bot-specified paid media payload'
          type: string
        gift:
          $ref: '#/components/schemas/Gift'
      required:
        - type
        - user
    TransactionPartnerChat:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartnerchat'
      description: Describes a transaction with a chat.
      type: object
      properties:
        type:
          description: 'Type of the transaction partner, always “chat”'
          default: chat
          type: string
        chat:
          $ref: '#/components/schemas/Chat'
        gift:
          $ref: '#/components/schemas/Gift'
      required:
        - type
        - chat
    TransactionPartnerAffiliateProgram:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartneraffiliateprogram'
      description:
        Describes the affiliate program that issued the affiliate commission
        received via this transaction.
      type: object
      properties:
        type:
          description:
            "Type of the transaction partner, always “affiliate\\_program”"
          default: affiliate_program
          type: string
        sponsor_user:
          $ref: '#/components/schemas/User'
        commission_per_mille:
          description:
            The number of Telegram Stars received by the bot for each 1000
            Telegram Stars received by the affiliate program sponsor from
            referred users
          type: integer
      required:
        - type
        - commission_per_mille
    TransactionPartnerFragment:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartnerfragment'
      description: Describes a withdrawal transaction with Fragment.
      type: object
      properties:
        type:
          description: 'Type of the transaction partner, always “fragment”'
          default: fragment
          type: string
        withdrawal_state:
          $ref: '#/components/schemas/RevenueWithdrawalState'
      required:
        - type
    TransactionPartnerTelegramAds:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartnertelegramads'
      description:
        Describes a withdrawal transaction to the Telegram Ads platform.
      type: object
      properties:
        type:
          description:
            "Type of the transaction partner, always “telegram\\_ads”"
          default: telegram_ads
          type: string
      required:
        - type
    TransactionPartnerTelegramApi:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartnertelegramapi'
      description:
        'Describes a transaction with payment for [paid
        broadcasting](https://core.telegram.org/bots/api/#paid-broadcasts).'
      type: object
      properties:
        type:
          description:
            "Type of the transaction partner, always “telegram\\_api”"
          default: telegram_api
          type: string
        request_count:
          description:
            The number of successful requests that exceeded regular limits and
            were therefore billed
          type: integer
      required:
        - type
        - request_count
    TransactionPartnerOther:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#transactionpartnerother'
      description: Describes a transaction with an unknown source or recipient.
      type: object
      properties:
        type:
          description: 'Type of the transaction partner, always “other”'
          default: other
          type: string
      required:
        - type
    StarTransaction:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#startransaction'
      description:
        "Describes a Telegram Star transaction. Note that if the buyer initiates
        a chargeback with the payment provider from whom they acquired Stars
        (e.g., Apple, Google) following this transaction, the refunded Stars
        will be deducted from the bot's balance. This is outside of Telegram's
        control."
      type: object
      properties:
        id:
          description:
            "Unique identifier of the transaction. Coincides with the identifier
            of the original transaction for refund transactions. Coincides with
            *SuccessfulPayment.telegram\\_payment\\_charge\\_id* for successful
            incoming payments from users."
          type: string
        amount:
          description:
            Integer amount of Telegram Stars transferred by the transaction
          type: integer
        nanostar_amount:
          description:
            '*Optional*. The number of 1/1000000000 shares of Telegram Stars
            transferred by the transaction; from 0 to 999999999'
          type: integer
        date:
          description: Date the transaction was created in Unix time
          type: integer
        source:
          $ref: '#/components/schemas/TransactionPartner'
        receiver:
          $ref: '#/components/schemas/TransactionPartner'
      required:
        - id
        - amount
        - date
    StarTransactions:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#startransactions'
      description: Contains a list of Telegram Star transactions.
      type: object
      properties:
        transactions:
          description: The list of transactions
          type: array
          items:
            $ref: '#/components/schemas/StarTransaction'
      required:
        - transactions
    PassportData:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportdata'
      description:
        Describes Telegram Passport data shared with the bot by the user.
      type: object
      properties:
        data:
          description:
            Array with information about documents and other Telegram Passport
            elements that was shared with the bot
          type: array
          items:
            $ref: '#/components/schemas/EncryptedPassportElement'
        credentials:
          $ref: '#/components/schemas/EncryptedCredentials'
      required:
        - data
        - credentials
    PassportFile:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportfile'
      description:
        "This object represents a file uploaded to Telegram Passport. Currently
        all Telegram Passport files are in JPEG format when decrypted and don't
        exceed 10MB."
      type: object
      properties:
        file_id:
          description:
            'Identifier for this file, which can be used to download or reuse
            the file'
          type: string
        file_unique_id:
          description:
            "Unique identifier for this file, which is supposed to be the same
            over time and for different bots. Can't be used to download or reuse
            the file."
          type: string
        file_size:
          description: File size in bytes
          type: integer
        file_date:
          description: Unix time when the file was uploaded
          type: integer
      required:
        - file_id
        - file_unique_id
        - file_size
        - file_date
    EncryptedPassportElement:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#encryptedpassportelement'
      description:
        Describes documents or other Telegram Passport elements shared with the
        bot by the user.
      type: object
      properties:
        type:
          description:
            "Element type. One of “personal\\_details”, “passport”,
            “driver\\_license”, “identity\\_card”, “internal\\_passport”,
            “address”, “utility\\_bill”, “bank\\_statement”,
            “rental\\_agreement”, “passport\\_registration”,
            “temporary\\_registration”, “phone\\_number”, “email”."
          type: string
          enum:
            - personal_details
            - passport
            - driver_license
            - identity_card
            - internal_passport
            - address
            - utility_bill
            - bank_statement
            - rental_agreement
            - passport_registration
            - temporary_registration
            - phone_number
            - email
        data:
          description:
            "*Optional*. Base64-encoded encrypted Telegram Passport element data
            provided by the user; available only for “personal\\_details”,
            “passport”, “driver\\_license”, “identity\\_card”,
            “internal\\_passport” and “address” types. Can be decrypted and
            verified using the accompanying
            [EncryptedCredentials](https://core.telegram.org/bots/api/#encryptedcredentials)."
          type: string
        phone_number:
          description:
            "*Optional*. User's verified phone number; available only for
            “phone\\_number” type"
          type: string
        email:
          description:
            "*Optional*. User's verified email address; available only for
            “email” type"
          type: string
        files:
          description:
            "*Optional*. Array of encrypted files with documents provided by the
            user; available only for “utility\\_bill”, “bank\\_statement”,
            “rental\\_agreement”, “passport\\_registration” and
            “temporary\\_registration” types. Files can be decrypted and
            verified using the accompanying
            [EncryptedCredentials](https://core.telegram.org/bots/api/#encryptedcredentials)."
          type: array
          items:
            $ref: '#/components/schemas/PassportFile'
        front_side:
          $ref: '#/components/schemas/PassportFile'
        reverse_side:
          $ref: '#/components/schemas/PassportFile'
        selfie:
          $ref: '#/components/schemas/PassportFile'
        translation:
          description:
            "*Optional*. Array of encrypted files with translated versions of
            documents provided by the user; available if requested for
            “passport”, “driver\\_license”, “identity\\_card”,
            “internal\\_passport”, “utility\\_bill”, “bank\\_statement”,
            “rental\\_agreement”, “passport\\_registration” and
            “temporary\\_registration” types. Files can be decrypted and
            verified using the accompanying
            [EncryptedCredentials](https://core.telegram.org/bots/api/#encryptedcredentials)."
          type: array
          items:
            $ref: '#/components/schemas/PassportFile'
        hash:
          description:
            'Base64-encoded element hash for using in
            [PassportElementErrorUnspecified](https://core.telegram.org/bots/api/#passportelementerrorunspecified)'
          type: string
      required:
        - type
        - hash
    EncryptedCredentials:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#encryptedcredentials'
      description:
        'Describes data required for decrypting and authenticating
        [EncryptedPassportElement](https://core.telegram.org/bots/api/#encryptedpassportelement).
        See the [Telegram Passport
        Documentation](https://core.telegram.org/passport#receiving-information)
        for a complete description of the data decryption and authentication
        processes.'
      type: object
      properties:
        data:
          description:
            "Base64-encoded encrypted JSON-serialized data with unique user's
            payload, data hashes and secrets required for
            [EncryptedPassportElement](https://core.telegram.org/bots/api/#encryptedpassportelement)
            decryption and authentication"
          type: string
        hash:
          description: Base64-encoded data hash for data authentication
          type: string
        secret:
          description:
            "Base64-encoded secret, encrypted with the bot's public RSA key,
            required for data decryption"
          type: string
      required:
        - data
        - hash
        - secret
    PassportElementError:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerror'
      description:
        "This object represents an error in the Telegram Passport element which
        was submitted that should be resolved by the user. It should be one
        of:\n\n*
        [PassportElementErrorDataField](https://core.telegram.org/bots/api/#passportelementerrordatafield)\n*
        [PassportElementErrorFrontSide](https://core.telegram.org/bots/api/#passportelementerrorfrontside)\n*
        [PassportElementErrorReverseSide](https://core.telegram.org/bots/api/#passportelementerrorreverseside)\n*
        [PassportElementErrorSelfie](https://core.telegram.org/bots/api/#passportelementerrorselfie)\n*
        [PassportElementErrorFile](https://core.telegram.org/bots/api/#passportelementerrorfile)\n*
        [PassportElementErrorFiles](https://core.telegram.org/bots/api/#passportelementerrorfiles)\n*
        [PassportElementErrorTranslationFile](https://core.telegram.org/bots/api/#passportelementerrortranslationfile)\n*
        [PassportElementErrorTranslationFiles](https://core.telegram.org/bots/api/#passportelementerrortranslationfiles)\n*
        [PassportElementErrorUnspecified](https://core.telegram.org/bots/api/#passportelementerrorunspecified)"
      anyOf:
        - $ref: '#/components/schemas/PassportElementErrorDataField'
        - $ref: '#/components/schemas/PassportElementErrorFrontSide'
        - $ref: '#/components/schemas/PassportElementErrorReverseSide'
        - $ref: '#/components/schemas/PassportElementErrorSelfie'
        - $ref: '#/components/schemas/PassportElementErrorFile'
        - $ref: '#/components/schemas/PassportElementErrorFiles'
        - $ref: '#/components/schemas/PassportElementErrorTranslationFile'
        - $ref: '#/components/schemas/PassportElementErrorTranslationFiles'
        - $ref: '#/components/schemas/PassportElementErrorUnspecified'
    PassportElementErrorDataField:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrordatafield'
      description:
        "Represents an issue in one of the data fields that was provided by the
        user. The error is considered resolved when the field's value changes."
      type: object
      properties:
        source:
          description: 'Error source, must be *data*'
          default: data
          type: string
        type:
          description:
            "The section of the user's Telegram Passport which has the error,
            one of “personal\\_details”, “passport”, “driver\\_license”,
            “identity\\_card”, “internal\\_passport”, “address”"
          type: string
          enum:
            - personal_details
            - passport
            - driver_license
            - identity_card
            - internal_passport
            - address
        field_name:
          description: Name of the data field which has the error
          type: string
        data_hash:
          description: Base64-encoded data hash
          type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - field_name
        - data_hash
        - message
    PassportElementErrorFrontSide:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrorfrontside'
      description:
        Represents an issue with the front side of a document. The error is
        considered resolved when the file with the front side of the document
        changes.
      type: object
      properties:
        source:
          description: "Error source, must be *front\\_side*"
          default: front_side
          type: string
        type:
          description:
            "The section of the user's Telegram Passport which has the issue,
            one of “passport”, “driver\\_license”, “identity\\_card”,
            “internal\\_passport”"
          type: string
          enum:
            - passport
            - driver_license
            - identity_card
            - internal_passport
        file_hash:
          description:
            Base64-encoded hash of the file with the front side of the document
          type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - file_hash
        - message
    PassportElementErrorReverseSide:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrorreverseside'
      description:
        Represents an issue with the reverse side of a document. The error is
        considered resolved when the file with reverse side of the document
        changes.
      type: object
      properties:
        source:
          description: "Error source, must be *reverse\\_side*"
          default: reverse_side
          type: string
        type:
          description:
            "The section of the user's Telegram Passport which has the issue,
            one of “driver\\_license”, “identity\\_card”"
          type: string
          enum:
            - driver_license
            - identity_card
        file_hash:
          description:
            Base64-encoded hash of the file with the reverse side of the
            document
          type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - file_hash
        - message
    PassportElementErrorSelfie:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrorselfie'
      description:
        Represents an issue with the selfie with a document. The error is
        considered resolved when the file with the selfie changes.
      type: object
      properties:
        source:
          description: 'Error source, must be *selfie*'
          default: selfie
          type: string
        type:
          description:
            "The section of the user's Telegram Passport which has the issue,
            one of “passport”, “driver\\_license”, “identity\\_card”,
            “internal\\_passport”"
          type: string
          enum:
            - passport
            - driver_license
            - identity_card
            - internal_passport
        file_hash:
          description: Base64-encoded hash of the file with the selfie
          type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - file_hash
        - message
    PassportElementErrorFile:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrorfile'
      description:
        Represents an issue with a document scan. The error is considered
        resolved when the file with the document scan changes.
      type: object
      properties:
        source:
          description: 'Error source, must be *file*'
          default: file
          type: string
        type:
          description:
            "The section of the user's Telegram Passport which has the issue,
            one of “utility\\_bill”, “bank\\_statement”, “rental\\_agreement”,
            “passport\\_registration”, “temporary\\_registration”"
          type: string
          enum:
            - utility_bill
            - bank_statement
            - rental_agreement
            - passport_registration
            - temporary_registration
        file_hash:
          description: Base64-encoded file hash
          type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - file_hash
        - message
    PassportElementErrorFiles:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrorfiles'
      description:
        Represents an issue with a list of scans. The error is considered
        resolved when the list of files containing the scans changes.
      type: object
      properties:
        source:
          description: 'Error source, must be *files*'
          default: files
          type: string
        type:
          description:
            "The section of the user's Telegram Passport which has the issue,
            one of “utility\\_bill”, “bank\\_statement”, “rental\\_agreement”,
            “passport\\_registration”, “temporary\\_registration”"
          type: string
          enum:
            - utility_bill
            - bank_statement
            - rental_agreement
            - passport_registration
            - temporary_registration
        file_hashes:
          description: List of base64-encoded file hashes
          type: array
          items:
            type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - file_hashes
        - message
    PassportElementErrorTranslationFile:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrortranslationfile'
      description:
        Represents an issue with one of the files that constitute the
        translation of a document. The error is considered resolved when the
        file changes.
      type: object
      properties:
        source:
          description: "Error source, must be *translation\\_file*"
          default: translation_file
          type: string
        type:
          description:
            "Type of element of the user's Telegram Passport which has the
            issue, one of “passport”, “driver\\_license”, “identity\\_card”,
            “internal\\_passport”, “utility\\_bill”, “bank\\_statement”,
            “rental\\_agreement”, “passport\\_registration”,
            “temporary\\_registration”"
          type: string
          enum:
            - passport
            - driver_license
            - identity_card
            - internal_passport
            - utility_bill
            - bank_statement
            - rental_agreement
            - passport_registration
            - temporary_registration
        file_hash:
          description: Base64-encoded file hash
          type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - file_hash
        - message
    PassportElementErrorTranslationFiles:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrortranslationfiles'
      description:
        Represents an issue with the translated version of a document. The error
        is considered resolved when a file with the document translation change.
      type: object
      properties:
        source:
          description: "Error source, must be *translation\\_files*"
          default: translation_files
          type: string
        type:
          description:
            "Type of element of the user's Telegram Passport which has the
            issue, one of “passport”, “driver\\_license”, “identity\\_card”,
            “internal\\_passport”, “utility\\_bill”, “bank\\_statement”,
            “rental\\_agreement”, “passport\\_registration”,
            “temporary\\_registration”"
          type: string
          enum:
            - passport
            - driver_license
            - identity_card
            - internal_passport
            - utility_bill
            - bank_statement
            - rental_agreement
            - passport_registration
            - temporary_registration
        file_hashes:
          description: List of base64-encoded file hashes
          type: array
          items:
            type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - file_hashes
        - message
    PassportElementErrorUnspecified:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#passportelementerrorunspecified'
      description:
        Represents an issue in an unspecified place. The error is considered
        resolved when new data is added.
      type: object
      properties:
        source:
          description: 'Error source, must be *unspecified*'
          default: unspecified
          type: string
        type:
          description:
            "Type of element of the user's Telegram Passport which has the issue"
          type: string
        element_hash:
          description: Base64-encoded element hash
          type: string
        message:
          description: Error message
          type: string
      required:
        - source
        - type
        - element_hash
        - message
    Game:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#game'
      description:
        'This object represents a game. Use BotFather to create and edit games,
        their short names will act as unique identifiers.'
      type: object
      properties:
        title:
          description: Title of the game
          type: string
        description:
          description: Description of the game
          type: string
        photo:
          description:
            Photo that will be displayed in the game message in chats.
          type: array
          items:
            $ref: '#/components/schemas/PhotoSize'
        text:
          description:
            '*Optional*. Brief description of the game or high scores included
            in the game message. Can be automatically edited to include current
            high scores for the game when the bot calls
            [setGameScore](https://core.telegram.org/bots/api/#setgamescore), or
            manually edited using
            [editMessageText](https://core.telegram.org/bots/api/#editmessagetext).
            0-4096 characters.'
          type: string
          minLength: 0
          maxLength: 4096
        text_entities:
          description:
            '*Optional*. Special entities that appear in *text*, such as
            usernames, URLs, bot commands, etc.'
          type: array
          items:
            $ref: '#/components/schemas/MessageEntity'
        animation:
          $ref: '#/components/schemas/Animation'
      required:
        - title
        - description
        - photo
    CallbackGame:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#callbackgame'
      description:
        'A placeholder, currently holds no information. Use
        [BotFather](https://t.me/botfather) to set up your game.'
    GameHighScore:
      externalDocs:
        url: 'https://core.telegram.org/bots/api/#gamehighscore'
      description:
        This object represents one row of the high scores table for a game.
      type: object
      properties:
        position:
          description: Position in high score table for the game
          type: integer
        user:
          $ref: '#/components/schemas/User'
        score:
          description: Score
          type: integer
      required:
        - position
        - user
        - score
externalDocs:
  description:
    The Bot API is an HTTP-based interface created for developers keen on
    building bots for Telegram.
  url: 'https://core.telegram.org/bots/api'
