All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dsl.GameButtonsBuilder.kt Maven / Gradle / Ivy

package dev.inmo.tgbotapi.keyboards.lib.dsl

import dev.inmo.tgbotapi.extensions.behaviour_builder.BehaviourContext
import dev.inmo.tgbotapi.keyboards.lib.KeyboardBuilder
import dev.inmo.tgbotapi.keyboards.lib.KeyboardMenu
import dev.inmo.tgbotapi.types.queries.callback.DataCallbackQuery
import dev.inmo.tgbotapi.utils.RowBuilder

fun  RowBuilder>.game(
    textBuilder: suspend BC.() -> String
) = +KeyboardBuilder.Button.Game(
    textBuilder = textBuilder
)


fun  RowBuilder>.game(
    text: String
) = game { text }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy