Conversation
…d InlineKeyboardButton
…the class Message
…g bots to manage their profile picture
There was a problem hiding this comment.
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.
| class RemoveMyProfilePhoto ( | ||
|
|
||
| ) : KBaseRequest<RemoveMyProfilePhoto, BaseResponse>(BaseResponse::class) No newline at end of file |
There was a problem hiding this comment.
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.
| ) { | ||
| } No newline at end of file |
There was a problem hiding this comment.
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.
| ) { | |
| } | |
| ) |
library/src/main/java/com/pengrad/telegrambot/model/chatowner/ChatOwnerChanged.kt
Show resolved
Hide resolved
|
Дай бог тебе здоровья |
Hello,
This PR includes updates to support the newly released BOT API version 9.4.
Thanks