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.
643 matches
60 actions
Telegram
60 actions
- post_addStickerToSetPOSTv1.0.0
- post_answerInlineQueryPOSTv1.0.0
- post_answerPreCheckoutQueryPOSTv1.0.0
- post_closePOSTv1.0.0
- post_copyMessagePOSTv1.0.0
- post_createNewStickerSetPOSTv1.0.0
- post_editMessageCaptionPOSTv1.0.0
- post_editMessageLiveLocationPOSTv1.0.0
- post_editMessageMediaPOSTv1.0.0
- post_editMessageReplyMarkupPOSTv1.0.0
- post_editMessageTextPOSTv1.0.0
- post_forwardMessagePOSTv1.0.0
- post_getChatPOSTv1.0.0
- post_getChatAdministratorsPOSTv1.0.0
- post_getChatMemberPOSTv1.0.0
- post_getChatMembersCountPOSTv1.0.0
- post_getFilePOSTv1.0.0
- post_getGameHighScoresPOSTv1.0.0
- post_getMePOSTv1.0.0
- post_getMyCommandsPOSTv1.0.0
- post_getStickerSetPOSTv1.0.0
- post_getUpdatesPOSTv1.0.0
- post_getUserProfilePhotosPOSTv1.0.0
- post_kickChatMemberPOSTv1.0.0
- post_leaveChatPOSTv1.0.0
- post_logOutPOSTv1.0.0
- post_pinChatMessagePOSTv1.0.0
- post_promoteChatMemberPOSTv1.0.0
- post_restrictChatMemberPOSTv1.0.0
- post_sendAnimationPOSTv1.0.0
- post_sendAudioPOSTv1.0.0
- post_sendChatActionPOSTv1.0.0
- post_sendContactPOSTv1.0.0
- post_sendDicePOSTv1.0.0
- post_sendDocumentPOSTv1.0.0
- post_sendGamePOSTv1.0.0
- post_sendInvoicePOSTv1.0.0
- post_sendLocationPOSTv1.0.0
- post_sendMediaGroupPOSTv1.0.0
- post_sendMessagePOSTv1.0.0
- post_sendPhotoPOSTv1.0.0
- post_sendPollPOSTv1.0.0
- post_sendStickerPOSTv1.0.0
- post_sendVenuePOSTv1.0.0
- post_sendVideoPOSTv1.0.0
- post_sendVideoNotePOSTv1.0.0
- post_sendVoicePOSTv1.0.0
- post_setChatAdministratorCustomTitlePOSTv1.0.0
- post_setChatDescriptionPOSTv1.0.0
- post_setChatPermissionsPOSTv1.0.0
- post_setChatPhotoPOSTv1.0.0
- post_setChatStickerSetPOSTv1.0.0
- post_setChatTitlePOSTv1.0.0
- post_setGameScorePOSTv1.0.0
- post_setMyCommandsPOSTv1.0.0
- post_setPassportDataErrorsPOSTv1.0.0
- post_setStickerPositionInSetPOSTv1.0.0
- post_setStickerSetThumbPOSTv1.0.0
- post_stopMessageLiveLocationPOSTv1.0.0
- post_stopPollPOSTv1.0.0
Communication/Telegram
post_setChatPermissions
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
{
"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
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
{
"type": "object",
"required": [
"ok",
"result"
],
"properties": {
"ok": {
"type": "boolean"
},
"result": {
"type": "boolean"
}
}
}