1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +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)
val botRightsInChat: ChatAdministratorRights? = null,
@SerialName(botIsMemberField)
val botIsMember: Boolean = false
val botIsMember: Boolean? = null
)

View File

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