Skip to content

Bot API 6.1 #1331

Closed
Closed
@TiiFuchs

Description

@TiiFuchs

Join Requests & Payments

  • Added the fields join_to_send_messages and join_by_request to the class Chat.
  • Added the ability to process join requests which were created without an invite link. Bots will receive a “chat_join_request” update as usual.
  • Added the method createInvoiceLink to generate an HTTP link for an invoice.

Telegram Premium Support (more info)

  • The maximum value of the field file_size in the classes Animation, Audio, Document, Video, Voice, and File can no longer be stored in a signed 32-bit integer type. This change is necessary to support 4GB files uploaded by premium accounts.
  • Added the field is_premium to the class User.
  • Added the field premium_animation to the class Sticker.

Attachment Menu Integration

  • Added the field added_to_attachment_menu to the class User.
    Bots integrated in the attachment menu can now be used in groups, supergroups and channels.
  • Added support for t.me links that can be used to select the chat in which the attachment menu with the bot will be opened.

Other Changes

  • Added the parameter secret_token to the method setWebhook.
  • As previously announced, only HTTPS links are now allowed in login_url inline keyboard buttons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions