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