Skip to content

canSendMessageToUser

Function · TDLib 1.8.67 · d1085f9c

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

canSendMessageToUser(
  user_id: int53,
  only_local: Bool
) → CanSendMessageToUserResult

user_id

int53

Identifier of the other user

only_local

Bool

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