getMyCommands

inline fun getMyCommands(languageCode: String? = null, scope: BotCommandScope? = null): GetMyCommandsAction

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

Api reference

Parameters

scope

A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.

languageCode

A two-letter ISO 639-1 language code or an empty string