MadelineProtoDocs/old_docs/API_docs_v95/constructors/updateChatDefaultBannedRights.md
2019-12-27 17:48:04 +01:00

1.1 KiB

title description image
updateChatDefaultBannedRights Default banned rights in a [normal chat](https://core.telegram.org/api/channel) were updated https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: updateChatDefaultBannedRights

Back to constructors index

Default banned rights in a normal chat were updated

Attributes:

Name Type Required Description
peer Peer Yes The chat
default_banned_rights ChatBannedRights Yes New default banned rights
version int Yes Version

Type: Update

Example:

$updateChatDefaultBannedRights = ['_' => 'updateChatDefaultBannedRights', 'peer' => Peer, 'default_banned_rights' => ChatBannedRights, 'version' => int];

Or, if you're into Lua:

updateChatDefaultBannedRights={_='updateChatDefaultBannedRights', peer=Peer, default_banned_rights=ChatBannedRights, version=int}