Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions _schema/223.json
Original file line number Diff line number Diff line change
Expand Up @@ -21179,10 +21179,16 @@
},
"messageActionNoForwardsRequest": {
"name": "messageActionNoForwardsRequest",
"description": [
"Emitted only in private chats if the other side requested to disable content protection »¹."
],
"links": [
"https://core.telegram.org/api/protected-content#for-users"
],
"fields": {
"expired": {
"name": "expired",
"description": " "
"description": "If set, this request was accepted or rejected by the other user and thus cannot be used anymore."
},
"flags": {
"name": "flags",
Expand All @@ -21193,24 +21199,33 @@
},
"new_value": {
"name": "new_value",
"description": " "
"description": "New requested protection status."
},
"prev_value": {
"name": "prev_value",
"description": " "
"description": "Previous protection status."
}
}
},
"messageActionNoForwardsToggle": {
"name": "messageActionNoForwardsToggle",
"description": [
"Emitted only in private chats when enabling or disabling content protection »¹."
],
"links": [
"https://core.telegram.org/api/protected-content#for-users"
],
"fields": {
"new_value": {
"name": "new_value",
"description": " "
"description": "New protection status."
},
"prev_value": {
"name": "prev_value",
"description": " "
"description": "Previous protection status (if true, the chat was protected). May be equal to new_value when replying to requests, see here »¹ for more info on the full flow.",
"links": [
"https://core.telegram.org/api/protected-content#for-users"
]
}
}
},
Expand Down Expand Up @@ -69716,10 +69731,10 @@
"messages.toggleNoForwards": {
"name": "messages.toggleNoForwards",
"description": [
"Enable or disable content protection¹ on a channel or chat"
"Enable or disable content protection¹ on a channel, group or private chat."
],
"links": [
"https://telegram.org/blog/protected-content-delete-by-date-and-more"
"https://core.telegram.org/api/protected-content"
],
"parameters": {
"enabled": {
Expand All @@ -69739,7 +69754,10 @@
},
"request_msg_id": {
"name": "request_msg_id",
"description": " "
"description": "Used only inside private chats to accept or refuse a request to disable content protection, see here »¹ for more info on the full flow.",
"links": [
"https://core.telegram.org/api/protected-content#for-users"
]
}
},
"errors": [
Expand Down
40 changes: 29 additions & 11 deletions _schema/latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21179,10 +21179,16 @@
},
"messageActionNoForwardsRequest": {
"name": "messageActionNoForwardsRequest",
"description": [
"Emitted only in private chats if the other side requested to disable content protection »¹."
],
"links": [
"https://core.telegram.org/api/protected-content#for-users"
],
"fields": {
"expired": {
"name": "expired",
"description": " "
"description": "If set, this request was accepted or rejected by the other user and thus cannot be used anymore."
},
"flags": {
"name": "flags",
Expand All @@ -21193,24 +21199,33 @@
},
"new_value": {
"name": "new_value",
"description": " "
"description": "New requested protection status."
},
"prev_value": {
"name": "prev_value",
"description": " "
"description": "Previous protection status."
}
}
},
"messageActionNoForwardsToggle": {
"name": "messageActionNoForwardsToggle",
"description": [
"Emitted only in private chats when enabling or disabling content protection »¹."
],
"links": [
"https://core.telegram.org/api/protected-content#for-users"
],
"fields": {
"new_value": {
"name": "new_value",
"description": " "
"description": "New protection status."
},
"prev_value": {
"name": "prev_value",
"description": " "
"description": "Previous protection status (if true, the chat was protected). May be equal to new_value when replying to requests, see here »¹ for more info on the full flow.",
"links": [
"https://core.telegram.org/api/protected-content#for-users"
]
}
}
},
Expand Down Expand Up @@ -69716,10 +69731,10 @@
"messages.toggleNoForwards": {
"name": "messages.toggleNoForwards",
"description": [
"Enable or disable content protection¹ on a channel or chat"
"Enable or disable content protection¹ on a channel, group or private chat."
],
"links": [
"https://telegram.org/blog/protected-content-delete-by-date-and-more"
"https://core.telegram.org/api/protected-content"
],
"parameters": {
"enabled": {
Expand All @@ -69739,7 +69754,10 @@
},
"request_msg_id": {
"name": "request_msg_id",
"description": " "
"description": "Used only inside private chats to accept or refuse a request to disable content protection, see here »¹ for more info on the full flow.",
"links": [
"https://core.telegram.org/api/protected-content#for-users"
]
}
},
"errors": [
Expand Down Expand Up @@ -80112,7 +80130,7 @@
"description": "The invite hash is empty."
},
"INVITE_HASH_EXPIRED": {
"code": 400,
"code": 406,
"type": "INVITE_HASH_EXPIRED",
"description": "The invite link has expired."
},
Expand Down Expand Up @@ -80386,7 +80404,7 @@
"description": "The specified message is not a voice message."
},
"MSG_WAIT_FAILED": {
"code": 500,
"code": 400,
"type": "MSG_WAIT_FAILED",
"description": "A waiting call returned an error."
},
Expand Down Expand Up @@ -80424,7 +80442,7 @@
"description": "The specified offset is longer than 64 bytes."
},
"NOT_ELIGIBLE": {
"code": 400,
"code": 403,
"type": "NOT_ELIGIBLE",
"description": "The current user is not eligible to join the Peer-to-Peer Login Program."
},
Expand Down
Loading