Skip to content

Conversation

mircoianese
Copy link
Collaborator

@mircoianese mircoianese commented Aug 19, 2025

Hello,

I'm implementing BOT API changes for v9.1 and v9.2:

Bot API 9.2

Checklists

  • 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
  • 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

Suggested Posts

Bot API 9.1

Checklists

  • Added the class ChecklistTask representing a task in a checklist.
  • Added the class Checklist representing a checklist.
  • Added the class InputChecklistTask representing a task to add to a checklist.
  • Added the class InputChecklist representing a checklist to create.
  • Added the field checklist to the classes Message and ExternalReplyInfo, describing a checklist in a message.
  • Added the class ChecklistTasksDone and the field checklist_tasks_done to the class Message, describing a service message about status changes for tasks in a checklist (i.e., marked as done/not done).
  • Added the class ChecklistTasksAdded and the field checklist_tasks_added to the class Message, describing a service message about the addition of new tasks to a checklist.
  • Added the method sendChecklist, allowing bots to send a checklist on behalf of a business account.
  • Added the method editMessageChecklist, allowing bots to edit a checklist on behalf of a business account.

Gifts

General

  • Increased the maximum number of options in a poll to 12.
  • Added the method getMyStarBalance, allowing bots to get their current balance of Telegram Stars.
  • Added the class DirectMessagePriceChanged and the field direct_message_price_changed to the class Message, describing a service message about a price change for direct messages sent to the channel chat.
  • Added the method hideKeyboard to the class WebApp.

… to the class Message, describing a service message about status changes for tasks in a checklist
…ed to the class Message, describing a service message about the addition of new tasks to a checklist.
…e_price_changed to the class Message, describing a service message about a price change for direct messages sent to the channel chat.
…ing bots to reply to a specific checklist task.
…ch can be used to get information about the chat that published a gift.
…fo which can be used to identify supergroups that are used as channel direct messages chats.
… the parent channel chat for a channel direct messages chat
…ic to the class Message, describing a topic of a direct messages chat.
…ge, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendPaidMedia, sendSticker, sendVideoNote, sendVoice, sendLocation, sendVenue, sendContact, sendDice, sendInvoice, sendMediaGroup, copyMessage, copyMessages, forwardMessage and forwardMessages.
…ost_parameters to the methods sendMessage, sendPhoto, sendVideo, sendAnimation, sendAudio, sendDocument, sendPaidMedia, sendSticker, sendVideoNote, sendVoice, sendLocation, sendVenue, sendContact, sendDice, sendInvoice, copyMessage, forwardMessage.
…o the class Message, describing a suggested post
… SuggestedPostDeclined, SuggestedPostPaid, SuggestedPostRefunded and the respective fields in the class Message
@mircoianese mircoianese requested a review from Copilot August 20, 2025 16:34
Copilot

This comment was marked as outdated.

@mircoianese mircoianese requested a review from Copilot August 20, 2025 16:39
Copilot

This comment was marked as outdated.

@mircoianese mircoianese requested a review from Copilot August 20, 2025 16:44
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Updates the Telegram Bot API implementation to support version 9.2, adding comprehensive support for checklists, suggested posts, direct messages in channels, and enhanced gift functionality. The PR also includes some corrections for spelling errors in comment text.

  • Updates version numbers from 9.0.0 to 9.2.0 across build configuration files
  • Implements new API features including checklists, suggested posts, direct messages topics, and enhanced gift objects
  • Adds new request and response classes for the new API endpoints

Reviewed Changes

Copilot reviewed 46 out of 46 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pom.xml Updates Maven version to 9.2.0
gradle.properties Updates Gradle version to 9.2.0
README.md, README_RU.md Updates documentation to reflect Bot API 9.2 support
SendGift.kt, ForwardMessage.kt, CopyMessage.kt, Video.kt Fixes spelling errors in comments (compatability → compatibility)
PaidMessagePriceChanged.kt Moves class to stars package
Multiple new response/request/model files Implements new Bot API 9.2 features for checklists, suggested posts, and direct messages
Message.java, ExternalReplyInfo.java, Chat.java, ChatFullInfo.java Adds new fields to support API 9.2 features

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@mircoianese mircoianese marked this pull request as ready for review August 20, 2025 16:45
@mircoianese mircoianese requested review from pengrad and anfanik August 20, 2025 16:46
@mircoianese
Copy link
Collaborator Author

This PR should be ready. As I said in the previous PR for v9.0 I'm not very familiar with Kotlin, so any suggestion / correction is appreciated.

Thanks

@pengrad pengrad merged commit b83d76a into pengrad:master Aug 23, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants