GetMyCommandsRequest

data class GetMyCommandsRequest(scope: BotCommandScope?, language_code: String?) : TelegramRequest

Use this method to get the current list of the bot's commands for the given scope and user language. Returns Array of BotCommand on success. If commands aren't set, an empty list is returned.

Constructors

GetMyCommandsRequest
Link copied to clipboard
fun GetMyCommandsRequest(scope: BotCommandScope? = null, language_code: String? = null)

Properties

language_code
Link copied to clipboard
val language_code: String? = null
A two-letter ISO 639-1 language code or an empty string
scope
Link copied to clipboard
val scope: BotCommandScope? = null
A JSON-serialized object, describing scope of users.