mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-07-14 22:15:11 +00:00
add support of canManageBots
This commit is contained in:
@@ -677,6 +677,8 @@ const val uniqueGiftColorsField = "unique_gift_colors"
|
|||||||
const val paidStarCountField = "paid_star_count"
|
const val paidStarCountField = "paid_star_count"
|
||||||
const val isPaidPostField = "is_paid_post"
|
const val isPaidPostField = "is_paid_post"
|
||||||
|
|
||||||
|
const val canManageBotsField = "can_manage_bots"
|
||||||
|
|
||||||
const val levelField = "level"
|
const val levelField = "level"
|
||||||
const val currentLevelRatingField = "current_level_rating"
|
const val currentLevelRatingField = "current_level_rating"
|
||||||
const val nextLevelRatingField = "next_level_rating"
|
const val nextLevelRatingField = "next_level_rating"
|
||||||
|
|||||||
@@ -517,6 +517,8 @@ data class ExtendedBot(
|
|||||||
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
override val acceptedGiftTypes: AcceptedGiftTypes = AcceptedGiftTypes(),
|
||||||
@SerialName(uniqueGiftColorsField)
|
@SerialName(uniqueGiftColorsField)
|
||||||
override val uniqueGiftColors: UniqueGiftColors? = null,
|
override val uniqueGiftColors: UniqueGiftColors? = null,
|
||||||
|
@SerialName(canManageBotsField)
|
||||||
|
val canManageBots: Boolean = false,
|
||||||
) : Bot(), ExtendedChat {
|
) : Bot(), ExtendedChat {
|
||||||
@SerialName(isBotField)
|
@SerialName(isBotField)
|
||||||
private val isBot = true
|
private val isBot = true
|
||||||
|
|||||||
Reference in New Issue
Block a user