Function can_send_message_to_user

Source
pub async fn can_send_message_to_user(
    user_id: i64,
    only_local: bool,
    client_id: i32,
) -> Result<CanSendMessageToUserResult, Error>
Expand description

Check whether the current user can message another user or try to create a chat with them

ยงArguments

  • user_id - Identifier of the other user
  • only_local - Pass true to get only locally available information without sending network requests
  • client_id - The client id to send the request to