commands

abstract suspend fun commands(scope: BotCommandScope?, languageCode: String?): TelegramBotCommands(source)

Fetches a TelegramBotCommands with scope and languageCode.

Parameters

scope

Scope of bot commands.

languageCode

A two-letter ISO 639-1 language code of commands.


open suspend fun commands(): TelegramBotCommands(source)

Fetches a TelegramBotCommands.