Function check_chat_username

Source
pub async fn check_chat_username(
    chat_id: i64,
    username: String,
    client_id: i32,
) -> Result<CheckChatUsernameResult, Error>
Expand description

Checks whether a username can be set for a chat

ยงArguments

  • chat_id - Chat identifier; must be identifier of a supergroup chat, or a channel chat, or a private chat with self, or 0 if the chat is being created
  • username - Username to be checked
  • client_id - The client id to send the request to