can_send_message_to_user


Description:

public async CanSendMessageToUserResult can_send_message_to_user (int64 user_id, bool only_local) throws TDLibError

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

Parameters:

user_id

Identifier of the other user

only_local

Pass true to get only locally available information without sending network requests