Skip to content

Conversation

@mircoianese
Copy link
Collaborator

Hello,

This PR includes updates to support the newly released BOT API version 9.4.

Thanks

Copy link

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 library to align with Telegram BOT API v9.4 by bumping published version numbers and adding newly introduced request/response types and model fields.

Changes:

  • Bump library version references to 9.4.0 (Gradle, Maven, READMEs).
  • Add new API surface for profile photos and user profile audios (new request/response + models).
  • Extend existing models to match v9.4 schema changes (keyboard button fields, video qualities, chat owner events, user/chat/gift fields).

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pom.xml Bumps Maven artifact version to 9.4.0.
gradle.properties Bumps Gradle-published version to 9.4.0.
README.md Updates dependency snippets to 9.4.0.
README_RU.md Updates dependency snippets to 9.4.0.
library/src/main/java/com/pengrad/telegrambot/response/GetUserProfileAudiosResponse.kt Adds response wrapper for getUserProfileAudios.
library/src/main/java/com/pengrad/telegrambot/request/GetUserProfileAudios.kt Adds request for fetching a user’s profile audios with paging params.
library/src/main/java/com/pengrad/telegrambot/model/UserProfileAudios.kt Adds model for paginated profile audio results (with array-safe equality).
library/src/main/java/com/pengrad/telegrambot/request/SetMyProfilePhoto.kt Adds request to set bot profile photo via InputProfilePhoto.
library/src/main/java/com/pengrad/telegrambot/request/RemoveMyProfilePhoto.kt Adds request to remove bot profile photo.
library/src/main/java/com/pengrad/telegrambot/model/request/KeyboardButton.java Adds icon_custom_emoji_id and style to reply keyboard buttons.
library/src/main/java/com/pengrad/telegrambot/model/request/InlineKeyboardButton.kt Adds iconCustomEmojiId and style to inline keyboard buttons.
library/src/main/java/com/pengrad/telegrambot/model/VideoQuality.kt Adds model for per-quality video variants.
library/src/main/java/com/pengrad/telegrambot/model/Video.kt Adds qualities field and custom equals/hashCode for array structural equality.
library/src/main/java/com/pengrad/telegrambot/model/chatowner/ChatOwnerLeft.kt Adds model for chat_owner_left message event payload.
library/src/main/java/com/pengrad/telegrambot/model/chatowner/ChatOwnerChanged.kt Adds model for chat_owner_changed message event payload.
library/src/main/java/com/pengrad/telegrambot/model/Message.java Adds new message event fields + accessors + equals/toString updates.
library/src/main/java/com/pengrad/telegrambot/model/User.java Adds allows_users_to_create_topics field + accessor + equals/toString updates.
library/src/main/java/com/pengrad/telegrambot/model/ChatFullInfo.java Adds first_profile_audio field + accessor + equals/toString updates.
library/src/main/java/com/pengrad/telegrambot/model/gift/unique/UniqueGiftModel.kt Adds rarity field.
library/src/main/java/com/pengrad/telegrambot/model/gift/unique/UniqueGift.kt Adds isBurned field.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +5 to +7
class RemoveMyProfilePhoto (

) : KBaseRequest<RemoveMyProfilePhoto, BaseResponse>(BaseResponse::class) No newline at end of file
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

RemoveMyProfilePhoto is declared with an empty primary constructor and extra whitespace/newlines. For consistency with other parameterless requests (e.g., GetAvailableGifts), consider removing the empty constructor parentheses and formatting it as a single-line class extending KBaseRequest.

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +8
) {
} No newline at end of file
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

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

This data class has an empty body block ({ }). It can be removed to reduce noise and match the style used in other simple model data classes.

Suggested change
) {
}
)

Copilot uses AI. Check for mistakes.
@mircoianese mircoianese marked this pull request as ready for review February 9, 2026 17:25
@mircoianese mircoianese requested a review from pengrad February 9, 2026 17:25
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.

1 participant