# restrictChatMember

Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass _True_ for all permissions to lift restrictions from a user. Returns _True_ on success.

<table><thead><tr><th width="166">Parameter</th><th width="104.8203125">Type</th><th width="101.6796875">Required</th><th>Description</th></tr></thead><tbody><tr><td>chat_id</td><td>Integer or String</td><td>Yes</td><td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td></tr><tr><td>user_id</td><td>Integer</td><td>Yes</td><td>Unique identifier of the target user</td></tr><tr><td>permissions</td><td>ChatPermissions</td><td>Yes</td><td>A JSON-serialized object for new user permissions</td></tr><tr><td>use_independent_chat_permissions</td><td>Boolean</td><td>Optional</td><td>Pass <em>True</em> if chat permissions are set independently. Otherwise, the <em>can_send_other_messages</em> and <em>can_add_web_page_previews</em> permissions will imply the <em>can_send_messages</em>, <em>can_send_audios</em>, <em>can_send_documents</em>, <em>can_send_photos</em>, <em>can_send_videos</em>, <em>can_send_video_notes</em>, and <em>can_send_voice_notes</em> permissions; the <em>can_send_polls</em> permission will imply the <em>can_send_messages</em> permission.</td></tr><tr><td>until_date</td><td>Integer</td><td>Optional</td><td>Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever</td></tr></tbody></table>
