get_bot_name

Function get_bot_name 

Source
pub async fn get_bot_name(
    bot_user_id: i64,
    language_code: String,
    client_id: i32,
) -> Result<Text, Error>
Expand description

Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true

ยงArguments

  • bot_user_id - Identifier of the target bot
  • language_code - A two-letter ISO 639-1 language code or an empty string
  • client_id - The client id to send the request to