RowBuilder

open class RowBuilder<T>(source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val row: List<T>

Functions

Link copied to clipboard
fun add(t: T): Boolean
Link copied to clipboard
fun InlineKeyboardRowBuilder.copyTextButton(text: String, data: CopyTextButtonData, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
fun InlineKeyboardRowBuilder.copyTextButton(text: String, data: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun InlineKeyboardRowBuilder.dataButton(text: String, data: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun InlineKeyboardRowBuilder.gameButton(text: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
Link copied to clipboard
fun InlineKeyboardRowBuilder.inlineQueryInAnyChosenChatButton(text: String, query: String? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun InlineKeyboardRowBuilder.inlineQueryInChosenChatButton(text: String, query: String? = null, allowUsers: Boolean = false, allowBots: Boolean = false, allowGroups: Boolean = false, allowChannels: Boolean = false, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun InlineKeyboardRowBuilder.loginButton(text: String, loginUrl: LoginURL, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun InlineKeyboardRowBuilder.payButton(text: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean

Creates and put PayInlineKeyboardButton

Link copied to clipboard
operator fun <T> RowBuilder<T>.plus(t: T): Boolean
Link copied to clipboard
fun remove(i: Int): T
Link copied to clipboard
fun replace(old: T, new: T): Boolean
fun replace(i: Int, new: T)
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestBotButton(text: String, requestId: RequestId, requestName: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestBotsButton(text: String, requestId: RequestId, maxCount: Int = keyboardButtonRequestUserLimit.first, requestName: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestChannelButton(text: String, requestId: RequestId, isPublic: Boolean? = null, isOwnedBy: Boolean? = null, userRightsInChat: ChatCommonAdministratorRights? = null, botRightsInChat: ChatCommonAdministratorRights? = null, botIsMember: Boolean? = null, requestTitle: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestChatButton(text: String, requestChat: KeyboardButtonRequestChat, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
fun ReplyKeyboardRowBuilder.requestChatButton(text: String, requestId: RequestId, isChannel: Boolean? = null, isForum: Boolean? = null, isPublic: Boolean? = null, isOwnedBy: Boolean? = null, userRightsInChat: ChatCommonAdministratorRights? = null, botRightsInChat: ChatCommonAdministratorRights? = null, botIsMember: Boolean? = null, requestTitle: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestGroupButton(text: String, requestId: RequestId, isForum: Boolean? = null, isPublic: Boolean? = null, isOwnedBy: Boolean? = null, userRightsInChat: ChatCommonAdministratorRights? = null, botRightsInChat: ChatCommonAdministratorRights? = null, botIsMember: Boolean? = null, requestTitle: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestManagedBotButton(text: String, requestManagedBot: KeyboardButtonRequestManagedBot, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
fun ReplyKeyboardRowBuilder.requestManagedBotButton(text: String, requestId: RequestId, suggestedName: String? = null, suggestedUsername: Username? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestPollButton(text: String, pollType: KeyboardButtonPollType, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestUserButton(text: String, requestId: RequestId, premiumUser: Boolean? = null, requestName: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestUserOrBotButton(text: String, requestId: RequestId, requestName: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestUsersButton(text: String, requestUser: KeyboardButtonRequestUsers, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
fun ReplyKeyboardRowBuilder.requestUsersButton(text: String, requestId: RequestId, premiumUser: Boolean? = null, maxCount: Int = keyboardButtonRequestUserLimit.first, requestName: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.requestUsersOrBotsButton(text: String, requestId: RequestId, premiumUser: Boolean? = null, maxCount: Int = keyboardButtonRequestUserLimit.first, requestName: Boolean? = null, requestUsername: Boolean? = null, requestPhoto: Boolean? = null, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
Link copied to clipboard
fun ReplyKeyboardRowBuilder.simpleButton(text: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean

Creates and put SimpleKeyboardButton

Link copied to clipboard
operator fun T.unaryPlus(): Boolean
Link copied to clipboard
fun InlineKeyboardRowBuilder.urlButton(text: String, url: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean

Creates and put URLInlineKeyboardButton

Link copied to clipboard
fun InlineKeyboardRowBuilder.webAppButton(text: String, webApp: WebAppInfo, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
fun InlineKeyboardRowBuilder.webAppButton(text: String, url: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean

Creates and put WebAppInlineKeyboardButton. Please, remember that this button is available in private chats only

fun ReplyKeyboardRowBuilder.webAppButton(text: String, webApp: WebAppInfo, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean
fun ReplyKeyboardRowBuilder.webAppButton(text: String, url: String, iconCustomEmojiId: CustomEmojiId? = null, style: KeyboardButtonStyle? = null): Boolean

Creates and put WebAppKeyboardButton