Skip to content

Full Support for Bot API 9.2 #4910

@aelkheir

Description

@aelkheir

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

Bot API 9.2

Important

  • Comment here or in the dev group what you want to work on so we can assign you
  • Please copy the relevant part of the checklist from # to your PR and make sure to cover everything :)
  • Please base your branch on the api-9.2-central branch
  • If this is your first contribution, please be sure to read the contribution guide
  • and feel free to reach out with any questions via https://t.me/pythontelegrambotchannel/105

Describe the solution you'd like

Checklists (@Poolitzer #4917)

  • Added the field checklist_task_id to the class ReplyParameters, allowing bots to reply to a specific checklist task.
  • Added the field reply_to_checklist_task_id to the class Message.

Gifts (@Poolitzer #4917)

  • Added the field publisher_chat to the classes Gift and UniqueGift which can be used to get information about the chat that published a gift.

Direct Messages in Channels (@harshil21 #4914)

Suggested Posts (@aelkheir, )


(@harshil21 #4916)


(@Poolitzer )

  • Added the field can_manage_direct_messages to the classes ChatMemberAdministrator and ChatAdministratorRights.
  • Added the parameter can_manage_direct_messages to the method promoteChatMember.
  • Added the field is_paid_post to the class Message, which can be used to identify paid posts. Such posts must not be deleted for 24 hours to receive the payment.

After first section of Suggested Posts

  • Added the class SuggestedPostInfo and the field suggested_post_info to the class Message, describing a suggested post.
  • Added the class SuggestedPostApproved and the field suggested_post_approved to the class Message, describing a service message about the approval of a suggested post.
  • Added the class SuggestedPostApprovalFailed and the field suggested_post_approval_failed to the class Message, describing a service message about the failed approval of a suggested post.

(@aelkheir #4921)

  • Added the class SuggestedPostDeclined and the field suggested_post_declined to the class Message, describing a service message about the rejection of a suggested post.
  • Added the class SuggestedPostPaid and the field suggested_post_paid to the class Message, describing a service message about a successful payment for a suggested post.
  • Added the class SuggestedPostRefunded and the field suggested_post_refunded to the class Message, describing a service message about a payment refund for a suggested post.

Describe alternatives you've considered

If you want to contribute, you can start from the Contribution Guide.

Additional context

Please comment below before start working on any part of the update so as to keep things in track and avoid double work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions