mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 08:37:18 +00:00
update
This commit is contained in:
parent
d6a6ad8d37
commit
11a97c520a
@ -68,35 +68,53 @@ suspend fun main(args: Array<String>) {
|
|||||||
row {
|
row {
|
||||||
requestUserOrBotButton(
|
requestUserOrBotButton(
|
||||||
"\uD83D\uDC64/\uD83E\uDD16 (1)",
|
"\uD83D\uDC64/\uD83E\uDD16 (1)",
|
||||||
requestIdUserOrBot
|
requestIdUserOrBot,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
row {
|
row {
|
||||||
requestUserButton(
|
requestUserButton(
|
||||||
"\uD83D\uDC64☆ (1)",
|
"\uD83D\uDC64☆ (1)",
|
||||||
requestIdUserNonPremium,
|
requestIdUserNonPremium,
|
||||||
premiumUser = false
|
premiumUser = false,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestUserButton(
|
requestUserButton(
|
||||||
"\uD83D\uDC64 (1)",
|
"\uD83D\uDC64 (1)",
|
||||||
requestIdUserAny,
|
requestIdUserAny,
|
||||||
premiumUser = null
|
premiumUser = null,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestUserButton(
|
requestUserButton(
|
||||||
"\uD83D\uDC64★ (1)",
|
"\uD83D\uDC64★ (1)",
|
||||||
requestIdUserPremium,
|
requestIdUserPremium,
|
||||||
premiumUser = true
|
premiumUser = true,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestBotButton(
|
requestBotButton(
|
||||||
"\uD83E\uDD16 (1)",
|
"\uD83E\uDD16 (1)",
|
||||||
requestIdBot
|
requestIdBot,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
row {
|
row {
|
||||||
requestUsersOrBotsButton(
|
requestUsersOrBotsButton(
|
||||||
"\uD83D\uDC64/\uD83E\uDD16",
|
"\uD83D\uDC64/\uD83E\uDD16",
|
||||||
requestIdUsersOrBots,
|
requestIdUsersOrBots,
|
||||||
maxCount = keyboardButtonRequestUserLimit.last
|
maxCount = keyboardButtonRequestUserLimit.last,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
row {
|
row {
|
||||||
@ -104,101 +122,152 @@ suspend fun main(args: Array<String>) {
|
|||||||
"\uD83D\uDC64☆",
|
"\uD83D\uDC64☆",
|
||||||
requestIdUsersNonPremium,
|
requestIdUsersNonPremium,
|
||||||
premiumUser = false,
|
premiumUser = false,
|
||||||
maxCount = keyboardButtonRequestUserLimit.last
|
maxCount = keyboardButtonRequestUserLimit.last,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestUsersButton(
|
requestUsersButton(
|
||||||
"\uD83D\uDC64",
|
"\uD83D\uDC64",
|
||||||
requestIdUsersAny,
|
requestIdUsersAny,
|
||||||
premiumUser = null,
|
premiumUser = null,
|
||||||
maxCount = keyboardButtonRequestUserLimit.last
|
maxCount = keyboardButtonRequestUserLimit.last,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestUsersButton(
|
requestUsersButton(
|
||||||
"\uD83D\uDC64★",
|
"\uD83D\uDC64★",
|
||||||
requestIdUsersPremium,
|
requestIdUsersPremium,
|
||||||
premiumUser = true,
|
premiumUser = true,
|
||||||
maxCount = keyboardButtonRequestUserLimit.last
|
maxCount = keyboardButtonRequestUserLimit.last,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestBotsButton(
|
requestBotsButton(
|
||||||
"\uD83E\uDD16",
|
"\uD83E\uDD16",
|
||||||
requestIdBots,
|
requestIdBots,
|
||||||
maxCount = keyboardButtonRequestUserLimit.last
|
maxCount = keyboardButtonRequestUserLimit.last,
|
||||||
|
requestName = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
row {
|
row {
|
||||||
requestChatButton(
|
requestChatButton(
|
||||||
"\uD83D\uDDE3/\uD83D\uDC65",
|
"\uD83D\uDDE3/\uD83D\uDC65",
|
||||||
requestIdAnyChat
|
requestIdAnyChat,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
row {
|
row {
|
||||||
requestChatButton(
|
requestChatButton(
|
||||||
"\uD83D\uDDE3",
|
"\uD83D\uDDE3",
|
||||||
requestIdChannel,
|
requestIdChannel,
|
||||||
isChannel = true
|
isChannel = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestChatButton(
|
requestChatButton(
|
||||||
"\uD83D\uDDE3\uD83D\uDD17",
|
"\uD83D\uDDE3\uD83D\uDD17",
|
||||||
requestIdPublicChannel,
|
requestIdPublicChannel,
|
||||||
isChannel = true,
|
isChannel = true,
|
||||||
isPublic = true
|
isPublic = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestChatButton(
|
requestChatButton(
|
||||||
"\uD83D\uDDE3❌\uD83D\uDD17",
|
"\uD83D\uDDE3❌\uD83D\uDD17",
|
||||||
requestIdPrivateChannel,
|
requestIdPrivateChannel,
|
||||||
isChannel = true,
|
isChannel = true,
|
||||||
isPublic = false
|
isPublic = false,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestChatButton(
|
requestChatButton(
|
||||||
"\uD83D\uDDE3\uD83D\uDC6E",
|
"\uD83D\uDDE3\uD83D\uDC6E",
|
||||||
requestIdChannelUserOwner,
|
requestIdChannelUserOwner,
|
||||||
isChannel = true,
|
isChannel = true,
|
||||||
isOwnedBy = true
|
isOwnedBy = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
row {
|
row {
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"👥",
|
"👥",
|
||||||
requestIdGroup
|
requestIdGroup,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"👥\uD83D\uDD17",
|
"👥\uD83D\uDD17",
|
||||||
requestIdPublicGroup,
|
requestIdPublicGroup,
|
||||||
isPublic = true
|
isPublic = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"👥❌\uD83D\uDD17",
|
"👥❌\uD83D\uDD17",
|
||||||
requestIdPrivateGroup,
|
requestIdPrivateGroup,
|
||||||
isPublic = false
|
isPublic = false,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"👥\uD83D\uDC6E",
|
"👥\uD83D\uDC6E",
|
||||||
requestIdGroupUserOwner,
|
requestIdGroupUserOwner,
|
||||||
isOwnedBy = true
|
isOwnedBy = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
row {
|
row {
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"🏛",
|
"🏛",
|
||||||
requestIdForum,
|
requestIdForum,
|
||||||
isForum = true
|
isForum = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"🏛\uD83D\uDD17",
|
"🏛\uD83D\uDD17",
|
||||||
requestIdPublicForum,
|
requestIdPublicForum,
|
||||||
isPublic = true,
|
isPublic = true,
|
||||||
isForum = true
|
isForum = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"🏛❌\uD83D\uDD17",
|
"🏛❌\uD83D\uDD17",
|
||||||
requestIdPrivateForum,
|
requestIdPrivateForum,
|
||||||
isPublic = false,
|
isPublic = false,
|
||||||
isForum = true
|
isForum = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
requestGroupButton(
|
requestGroupButton(
|
||||||
"🏛\uD83D\uDC6E",
|
"🏛\uD83D\uDC6E",
|
||||||
requestIdForumUserOwner,
|
requestIdForumUserOwner,
|
||||||
isOwnedBy = true,
|
isOwnedBy = true,
|
||||||
isForum = true
|
isForum = true,
|
||||||
|
requestTitle = true,
|
||||||
|
requestUsername = true,
|
||||||
|
requestPhoto = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user