block User
Blocks the specified User ID. Blocked User cannot send messages to the blocker.
Since
4.15.0
Parameters
user Id To Block
User ID to block.
handler
Callback handler.
Deprecated
As of 4.17.0, replaced with awaitBlockUser(userIdToBlock).
Replace with
awaitBlockUser(userIdToBlock)Content copied to clipboard
Blocks the specified User. Blocked User cannot send messages to the blocker.
Return
The blocked User object.
Since
4.15.0
Parameters
user Id To Block
User ID to block.