Interface GetBotName

Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true. Request type for Tdjson#getBotName.

interface GetBotName {
    @type: "getBotName";
    bot_user_id: number;
    language_code: string;
}

Properties

@type: "getBotName"
bot_user_id: number

Identifier of the target bot.

language_code: string

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