MadelineProtoDocs/old_docs/API_docs_v38/constructors/updateUserBlocked.md
2019-12-27 17:48:04 +01: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}