All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
commonMain.dsl.SwitchInlineQueryChosenChatButtonsBuilder.kt Maven / Gradle / Ivy
package dev.inmo.tgbotapi.keyboards.lib.dsl
import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
import dev.inmo.tgbotapi.extensions.behaviour_builder.CustomBehaviourContextAndTypeReceiver
import dev.inmo.tgbotapi.extensions.behaviour_builder.utils.SimpleFilter
import dev.inmo.tgbotapi.keyboards.lib.KeyboardBuilder
import dev.inmo.tgbotapi.keyboards.lib.KeyboardMenu
import dev.inmo.tgbotapi.types.InlineQueries.query.BaseInlineQuery
import dev.inmo.tgbotapi.types.InlineQueries.query.InlineQuery
import dev.inmo.tgbotapi.types.LoginURL
import dev.inmo.tgbotapi.types.queries.callback.DataCallbackQuery
import dev.inmo.tgbotapi.utils.RowBuilder
fun RowBuilder>.switchInlineQueryChosenChat(
textBuilder: suspend BC.() -> String,
parametersBuilder: suspend BC.() -> dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat
) = +KeyboardBuilder.Button.SwitchInlineQueryChosenChat(
textBuilder = textBuilder,
parametersBuilder = parametersBuilder
)
fun RowBuilder>.switchInlineQueryChosenChat(
parametersBuilder: dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat,
textBuilder: suspend BC.() -> String,
) = switchInlineQueryChosenChat(
textBuilder = textBuilder,
parametersBuilder = { parametersBuilder }
)
fun RowBuilder>.switchInlineQueryChosenChat(
text: String,
parametersBuilder: suspend BC.() -> dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat
) = switchInlineQueryChosenChat(
textBuilder = { text },
parametersBuilder = parametersBuilder
)
fun RowBuilder>.switchInlineQueryChosenChat(
text: String,
switchInlineQueryChosenChat: dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat
) = switchInlineQueryChosenChat({ text }) { switchInlineQueryChosenChat }
fun RowBuilder>.switchInlineQueryChosenChat(
textBuilder: suspend BC.() -> String,
parametersBuilder: suspend BC.() -> dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat,
initialFilter: SimpleFilter? = null,
onBaseInlineQueryCallback: CustomBehaviourContextAndTypeReceiver
) = +KeyboardBuilder.Button.SwitchInlineQueryChosenChat(
textBuilder = textBuilder,
parametersBuilder = parametersBuilder,
initialFilter = initialFilter,
onBaseInlineQueryCallback = onBaseInlineQueryCallback
)
fun RowBuilder>.switchInlineQueryChosenChat(
textBuilder: suspend BC.() -> String,
parametersBuilder: dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat,
initialFilter: SimpleFilter? = null,
onBaseInlineQueryCallback: CustomBehaviourContextAndTypeReceiver
) = switchInlineQueryChosenChat(
textBuilder = textBuilder,
parametersBuilder = { parametersBuilder },
initialFilter = initialFilter,
onBaseInlineQueryCallback = onBaseInlineQueryCallback
)
fun RowBuilder>.switchInlineQueryChosenChat(
text: String,
parametersBuilder: suspend BC.() -> dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat,
initialFilter: SimpleFilter? = null,
onBaseInlineQueryCallback: CustomBehaviourContextAndTypeReceiver
) = switchInlineQueryChosenChat(
textBuilder = { text },
parametersBuilder = parametersBuilder,
initialFilter = initialFilter,
onBaseInlineQueryCallback = onBaseInlineQueryCallback
)
fun RowBuilder>.switchInlineQueryChosenChat(
text: String,
switchInlineQueryChosenChat: dev.inmo.tgbotapi.types.buttons.InlineKeyboardButtons.SwitchInlineQueryChosenChat,
initialFilter: SimpleFilter? = null,
onBaseInlineQueryCallback: CustomBehaviourContextAndTypeReceiver
) = switchInlineQueryChosenChat(
{ text },
{ switchInlineQueryChosenChat },
initialFilter = initialFilter,
onBaseInlineQueryCallback = onBaseInlineQueryCallback
)