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

eu.vendeli.tgbot.api.botactions.GetMyShortDescription.kt Maven / Gradle / Ivy

@file:Suppress("MatchingDeclarationName")

package eu.vendeli.tgbot.api.botactions

import eu.vendeli.tgbot.interfaces.ActionState
import eu.vendeli.tgbot.interfaces.SimpleAction
import eu.vendeli.tgbot.interfaces.TgAction
import eu.vendeli.tgbot.types.bot.BotShortDescription
import eu.vendeli.tgbot.types.internal.TgMethod
import eu.vendeli.tgbot.utils.getReturnType

class GetMyShortDescriptionAction(languageCode: String? = null) : SimpleAction, ActionState() {
    override val TgAction.method: TgMethod
        get() = TgMethod("getMyDescription")
    override val TgAction.returnType: Class
        get() = getReturnType()

    init {
        if (languageCode != null) parameters["language_code"] = languageCode
    }
}

fun getMyShortDescription(languageCode: String? = null) = GetMyShortDescriptionAction(languageCode)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy