MadelineProtoDocs/old_docs/API_docs_v21/constructors/updateUserBlocked.md
2020-06-16 17:50:25 +02:00

1.1 KiB

title description image
updateUserBlocked User was added to the blacklist (method [contacts.block](../methods/contacts.block.md)) or removed from the blacklist (method [contacts.unblock](../methods/contacts.unblock.md)). https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateUserBlocked

Back to constructors index

User was added to the blacklist (method contacts.block) or removed from the blacklist (method contacts.unblock).

Attributes:

Name Type Required Description
user_id int Yes User id
blocked Bool Yes (boolTrue) if the the user is blocked

Type: Update

Example:

$updateUserBlocked = ['_' => 'updateUserBlocked', 'user_id' => int, 'blocked' => Bool];

Or, if you're into Lua:

updateUserBlocked={_='updateUserBlocked', user_id=int, blocked=Bool}