1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

small fix in request chat button

This commit is contained in:
InsanusMokrassar 2023-02-05 23:18:14 +06:00
parent e235280253
commit 12ac227d2d
2 changed files with 2 additions and 2 deletions

View File

@ -33,6 +33,6 @@ data class KeyboardButtonRequestChat(
@SerialName(botAdministratorRightsField) @SerialName(botAdministratorRightsField)
val botRightsInChat: ChatAdministratorRights? = null, val botRightsInChat: ChatAdministratorRights? = null,
@SerialName(botIsMemberField) @SerialName(botIsMemberField)
val botIsMember: Boolean = false val botIsMember: Boolean? = null
) )

View File

@ -235,7 +235,7 @@ inline fun ReplyKeyboardRowBuilder.requestChatButton(
ownedBy: Boolean? = null, ownedBy: Boolean? = null,
userRightsInChat: ChatAdministratorRights? = null, userRightsInChat: ChatAdministratorRights? = null,
botRightsInChat: ChatAdministratorRights? = null, botRightsInChat: ChatAdministratorRights? = null,
botIsMember: Boolean = false botIsMember: Boolean? = null
) = requestChatButton( ) = requestChatButton(
text, text,
KeyboardButtonRequestChat( KeyboardButtonRequestChat(