action telegram_post_set_chat_permissions { label: "post_setChatPermissions" description: "Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the *can\\_restrict\\_members* admin rights. Returns *True* on success." provider: telegram method: POST path: "/setChatPermissions" encoding: form input: { type: "object" required: ["chat_id", "permissions"] properties: { chat_id: { description: "Unique identifier for the target chat or username of the target supergroup (in the format `@supergroupusername`)" type: "object" } permissions: { type: "object" description: "Describes actions that a non-administrator user is allowed to take in a chat." properties: { can_add_web_page_previews: { type: "boolean" description: "*Optional*. True, if the user is allowed to add web page previews to their messages, implies can\\_send\\_media\\_messages" } can_change_info: { type: "boolean" description: "*Optional*. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups" } can_invite_users: { type: "boolean" description: "*Optional*. True, if the user is allowed to invite new users to the chat" } can_pin_messages: { type: "boolean" description: "*Optional*. True, if the user is allowed to pin messages. Ignored in public supergroups" } can_send_media_messages: { type: "boolean" description: "*Optional*. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can\\_send\\_messages" } can_send_messages: { type: "boolean" description: "*Optional*. True, if the user is allowed to send text messages, contacts, locations and venues" } can_send_other_messages: { type: "boolean" description: "*Optional*. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can\\_send\\_media\\_messages" } can_send_polls: { type: "boolean" description: "*Optional*. True, if the user is allowed to send polls, implies can\\_send\\_messages" } } } } } output: { type: "object" required: ["ok", "result"] properties: { ok: { type: "boolean" } result: { type: "boolean" } } } }