set_chat_location

Function set_chat_location 

Source
pub async fn set_chat_location(
    chat_id: i64,
    location: ChatLocation,
    client_id: i32,
) -> Result<(), Error>
Expand description

Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use

ยงArguments

  • chat_id - Chat identifier
  • location - New location for the chat; must be valid and not null
  • client_id - The client id to send the request to