From 1b4517168b2f770a8cea640be3dfdff087ccd21f Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 15 Aug 2019 20:30:02 +0200 Subject: [PATCH] Localize --- .../constructors/auth_authorizationSignUpRequired.md | 10 ++++++---- docs/API_docs/constructors/channel.md | 4 ++-- .../channelAdminLogEventActionToggleSlowMode.md | 12 +++++++----- docs/API_docs/constructors/channelFull.md | 2 +- .../API_docs/constructors/channelParticipantAdmin.md | 2 +- .../constructors/channelParticipantCreator.md | 2 +- docs/API_docs/constructors/codeSettings.md | 2 +- docs/API_docs/constructors/help_appUpdate.md | 2 +- .../constructors/inputStickerSetAnimatedEmoji.md | 4 +++- .../payments_paymentVerificationNeeded.md | 10 ++++++---- docs/API_docs/methods/channels_editAdmin.md | 2 +- docs/API_docs/methods/channels_toggleSlowMode.md | 12 +++++++----- docs/API_docs/methods/index.md | 2 ++ docs/index.md | 1 + old_docs/API_docs_v103/constructors/channel.md | 2 +- .../constructors/auth_authorizationSignUpRequired.md | 10 ++++++---- old_docs/API_docs_v104/constructors/channel.md | 4 ++-- .../channelAdminLogEventActionToggleSlowMode.md | 12 +++++++----- old_docs/API_docs_v104/constructors/channelFull.md | 2 +- .../constructors/channelParticipantAdmin.md | 2 +- .../constructors/channelParticipantCreator.md | 2 +- old_docs/API_docs_v104/constructors/codeSettings.md | 2 +- .../API_docs_v104/constructors/help_appUpdate.md | 2 +- .../constructors/inputStickerSetAnimatedEmoji.md | 4 +++- .../payments_paymentVerificationNeeded.md | 10 ++++++---- old_docs/API_docs_v104/methods/README.md | 2 ++ old_docs/API_docs_v104/methods/channels_editAdmin.md | 2 +- .../API_docs_v104/methods/channels_toggleSlowMode.md | 12 +++++++----- 28 files changed, 80 insertions(+), 55 deletions(-) diff --git a/docs/API_docs/constructors/auth_authorizationSignUpRequired.md b/docs/API_docs/constructors/auth_authorizationSignUpRequired.md index 8ed9286c..b3c56c9d 100644 --- a/docs/API_docs/constructors/auth_authorizationSignUpRequired.md +++ b/docs/API_docs/constructors/auth_authorizationSignUpRequired.md @@ -1,6 +1,6 @@ --- title: auth.authorizationSignUpRequired -description: auth_authorizationSignUpRequired attributes, type and example +description: Signup is required image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: auth.authorizationSignUpRequired @@ -8,11 +8,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Signup is required + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|Telegram's Terms of Service| diff --git a/docs/API_docs/constructors/channel.md b/docs/API_docs/constructors/channel.md index 0ee2cfc6..e173de6a 100644 --- a/docs/API_docs/constructors/channel.md +++ b/docs/API_docs/constructors/channel.md @@ -24,8 +24,8 @@ Channel |min|[Bool](../types/Bool.md) | Optional|Min?| |scam|[Bool](../types/Bool.md) | Optional|Scam channel| |has\_link|[Bool](../types/Bool.md) | Optional|Has linked chat?| -|has\_geo|[Bool](../types/Bool.md) | Optional|| -|slowmode\_enabled|[Bool](../types/Bool.md) | Optional|| +|has\_geo|[Bool](../types/Bool.md) | Optional|Whether this is a geogroup| +|slowmode\_enabled|[Bool](../types/Bool.md) | Optional|Whether slowmode is enabled| |id|[int](../types/int.md) | Yes|ID| |access\_hash|[long](../types/long.md) | Optional|Access hash| |title|[string](../types/string.md) | Yes|Title| diff --git a/docs/API_docs/constructors/channelAdminLogEventActionToggleSlowMode.md b/docs/API_docs/constructors/channelAdminLogEventActionToggleSlowMode.md index 6e1fb05d..327241dc 100644 --- a/docs/API_docs/constructors/channelAdminLogEventActionToggleSlowMode.md +++ b/docs/API_docs/constructors/channelAdminLogEventActionToggleSlowMode.md @@ -1,6 +1,6 @@ --- title: channelAdminLogEventActionToggleSlowMode -description: channelAdminLogEventActionToggleSlowMode attributes, type and example +description: Channel admin log event action toggle slow mode image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: channelAdminLogEventActionToggleSlowMode @@ -8,12 +8,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Channel admin log event action toggle slow mode + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|prev\_value|[int](../types/int.md) | Yes| -|new\_value|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_value|[int](../types/int.md) | Yes|Prev value| +|new\_value|[int](../types/int.md) | Yes|New value| diff --git a/docs/API_docs/constructors/channelFull.md b/docs/API_docs/constructors/channelFull.md index 58174bd1..f046be90 100644 --- a/docs/API_docs/constructors/channelFull.md +++ b/docs/API_docs/constructors/channelFull.md @@ -42,7 +42,7 @@ Full channel |folder\_id|[int](../types/int.md) | Optional|Folder ID| |linked\_chat\_id|[int](../types/int.md) | Optional|Linked chat ID| |location|[ChannelLocation](../types/ChannelLocation.md) | Optional|Location| -|slowmode\_seconds|[int](../types/int.md) | Optional|| +|slowmode\_seconds|[int](../types/int.md) | Optional|If specified, users in supergroups will only be able to send one message every `slowmode_seconds` seconds| |slowmode\_next\_send\_date|[int](../types/int.md) | Optional|| |pts|[int](../types/int.md) | Yes|PTS| diff --git a/docs/API_docs/constructors/channelParticipantAdmin.md b/docs/API_docs/constructors/channelParticipantAdmin.md index b9268fe6..39a044f7 100644 --- a/docs/API_docs/constructors/channelParticipantAdmin.md +++ b/docs/API_docs/constructors/channelParticipantAdmin.md @@ -21,7 +21,7 @@ Channel participant admin |promoted\_by|[int](../types/int.md) | Yes|Promoted by| |date|[int](../types/int.md) | Yes|Date| |admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes|Admin rights| -|rank|[string](../types/string.md) | Optional|| +|rank|[string](../types/string.md) | Optional|Admin's rank, an arbitrary string| diff --git a/docs/API_docs/constructors/channelParticipantCreator.md b/docs/API_docs/constructors/channelParticipantCreator.md index a12f3638..0f47b2d0 100644 --- a/docs/API_docs/constructors/channelParticipantCreator.md +++ b/docs/API_docs/constructors/channelParticipantCreator.md @@ -15,7 +15,7 @@ Channel participant creator | Name | Type | Required | Description | |----------|---------------|----------|-------------| |user\_id|[int](../types/int.md) | Yes|User ID| -|rank|[string](../types/string.md) | Optional|| +|rank|[string](../types/string.md) | Optional|Creator rank, an arbitrary string| diff --git a/docs/API_docs/constructors/codeSettings.md b/docs/API_docs/constructors/codeSettings.md index 4b30c113..bce1d301 100644 --- a/docs/API_docs/constructors/codeSettings.md +++ b/docs/API_docs/constructors/codeSettings.md @@ -16,7 +16,7 @@ Code settings |----------|---------------|----------|-------------| |allow\_flashcall|[Bool](../types/Bool.md) | Optional|Allow flashcal?| |current\_number|[Bool](../types/Bool.md) | Optional|Current number?| -|allow\_app\_hash|[Bool](../types/Bool.md) | Optional|| +|allow\_app\_hash|[Bool](../types/Bool.md) | Optional|Whether to allow a persistent app hash| diff --git a/docs/API_docs/constructors/help_appUpdate.md b/docs/API_docs/constructors/help_appUpdate.md index 86a3c355..b9d1c2be 100644 --- a/docs/API_docs/constructors/help_appUpdate.md +++ b/docs/API_docs/constructors/help_appUpdate.md @@ -14,7 +14,7 @@ App update | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|can\_not\_skip|[Bool](../types/Bool.md) | Optional|| +|can\_not\_skip|[Bool](../types/Bool.md) | Optional|Whether the update is skippable| |id|[int](../types/int.md) | Yes|ID| |version|[string](../types/string.md) | Yes|Version| |text|[string](../types/string.md) | Yes|Text| diff --git a/docs/API_docs/constructors/inputStickerSetAnimatedEmoji.md b/docs/API_docs/constructors/inputStickerSetAnimatedEmoji.md index faac3344..61e5c133 100644 --- a/docs/API_docs/constructors/inputStickerSetAnimatedEmoji.md +++ b/docs/API_docs/constructors/inputStickerSetAnimatedEmoji.md @@ -1,6 +1,6 @@ --- title: inputStickerSetAnimatedEmoji -description: inputStickerSetAnimatedEmoji attributes, type and example +description: Animated emojis stickerset image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: inputStickerSetAnimatedEmoji @@ -8,6 +8,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Animated emojis stickerset + diff --git a/docs/API_docs/constructors/payments_paymentVerificationNeeded.md b/docs/API_docs/constructors/payments_paymentVerificationNeeded.md index 4d42f0f9..1c38c2b3 100644 --- a/docs/API_docs/constructors/payments_paymentVerificationNeeded.md +++ b/docs/API_docs/constructors/payments_paymentVerificationNeeded.md @@ -1,6 +1,6 @@ --- title: payments.paymentVerificationNeeded -description: payments_paymentVerificationNeeded attributes, type and example +description: Payment verification needed image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: payments.paymentVerificationNeeded @@ -8,11 +8,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Payment verification needed + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|url|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|3dsecure URL| diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index ac2baa5f..d51157ef 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -16,7 +16,7 @@ Edit admin permissions of a user in a channel/supergroup |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| |admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Admin rights | Yes| -|rank|[string](../types/string.md) | | Yes| +|rank|[string](../types/string.md) | Admin rank, an arbitrary string | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/docs/API_docs/methods/channels_toggleSlowMode.md b/docs/API_docs/methods/channels_toggleSlowMode.md index 328c0e20..6dc12062 100644 --- a/docs/API_docs/methods/channels_toggleSlowMode.md +++ b/docs/API_docs/methods/channels_toggleSlowMode.md @@ -1,18 +1,20 @@ --- title: channels.toggleSlowMode -description: channels.toggleSlowMode parameters, return type and example +description: Toggle slow mode image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.toggleSlowMode [Back to methods index](index.md) +Toggle slow mode + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| -|seconds|[int](../types/int.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Supergroup | Optional| +|seconds|[int](../types/int.md) | Users will only be able to send one message every `seconds` seconds, `0` to disable the limitation | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 617cde5f..39e06ae7 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -544,6 +544,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Toggle channel signatures: channels.toggleSignatures +* Toggle slow mode: channels.toggleSlowMode + * Toggle top peers: contacts.toggleTopPeers * Unblock a user: contacts.unblock diff --git a/docs/index.md b/docs/index.md index 324a65d8..be814661 100644 --- a/docs/index.md +++ b/docs/index.md @@ -437,6 +437,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * Start account exporting session: account.initTakeoutSession * Stop sending PUSH notifications to app: account.unregisterDevice * Toggle channel signatures: channels.toggleSignatures + * Toggle slow mode: channels.toggleSlowMode * Toggle top peers: contacts.toggleTopPeers * Unblock a user: contacts.unblock * Update online status: account.updateStatus diff --git a/old_docs/API_docs_v103/constructors/channel.md b/old_docs/API_docs_v103/constructors/channel.md index df5a05f8..62f5fed3 100644 --- a/old_docs/API_docs_v103/constructors/channel.md +++ b/old_docs/API_docs_v103/constructors/channel.md @@ -24,7 +24,7 @@ Channel |min|[Bool](../types/Bool.md) | Optional|Min?| |scam|[Bool](../types/Bool.md) | Optional|Scam channel| |has\_link|[Bool](../types/Bool.md) | Optional|Has linked chat?| -|has\_geo|[Bool](../types/Bool.md) | Optional|| +|has\_geo|[Bool](../types/Bool.md) | Optional|Whether this is a geogroup| |id|[int](../types/int.md) | Yes|ID| |access\_hash|[long](../types/long.md) | Optional|Access hash| |title|[string](../types/string.md) | Yes|Title| diff --git a/old_docs/API_docs_v104/constructors/auth_authorizationSignUpRequired.md b/old_docs/API_docs_v104/constructors/auth_authorizationSignUpRequired.md index 8ed9286c..b3c56c9d 100644 --- a/old_docs/API_docs_v104/constructors/auth_authorizationSignUpRequired.md +++ b/old_docs/API_docs_v104/constructors/auth_authorizationSignUpRequired.md @@ -1,6 +1,6 @@ --- title: auth.authorizationSignUpRequired -description: auth_authorizationSignUpRequired attributes, type and example +description: Signup is required image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: auth.authorizationSignUpRequired @@ -8,11 +8,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Signup is required + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|Telegram's Terms of Service| diff --git a/old_docs/API_docs_v104/constructors/channel.md b/old_docs/API_docs_v104/constructors/channel.md index 0ee2cfc6..e173de6a 100644 --- a/old_docs/API_docs_v104/constructors/channel.md +++ b/old_docs/API_docs_v104/constructors/channel.md @@ -24,8 +24,8 @@ Channel |min|[Bool](../types/Bool.md) | Optional|Min?| |scam|[Bool](../types/Bool.md) | Optional|Scam channel| |has\_link|[Bool](../types/Bool.md) | Optional|Has linked chat?| -|has\_geo|[Bool](../types/Bool.md) | Optional|| -|slowmode\_enabled|[Bool](../types/Bool.md) | Optional|| +|has\_geo|[Bool](../types/Bool.md) | Optional|Whether this is a geogroup| +|slowmode\_enabled|[Bool](../types/Bool.md) | Optional|Whether slowmode is enabled| |id|[int](../types/int.md) | Yes|ID| |access\_hash|[long](../types/long.md) | Optional|Access hash| |title|[string](../types/string.md) | Yes|Title| diff --git a/old_docs/API_docs_v104/constructors/channelAdminLogEventActionToggleSlowMode.md b/old_docs/API_docs_v104/constructors/channelAdminLogEventActionToggleSlowMode.md index 6e1fb05d..327241dc 100644 --- a/old_docs/API_docs_v104/constructors/channelAdminLogEventActionToggleSlowMode.md +++ b/old_docs/API_docs_v104/constructors/channelAdminLogEventActionToggleSlowMode.md @@ -1,6 +1,6 @@ --- title: channelAdminLogEventActionToggleSlowMode -description: channelAdminLogEventActionToggleSlowMode attributes, type and example +description: Channel admin log event action toggle slow mode image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: channelAdminLogEventActionToggleSlowMode @@ -8,12 +8,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Channel admin log event action toggle slow mode + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|prev\_value|[int](../types/int.md) | Yes| -|new\_value|[int](../types/int.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|prev\_value|[int](../types/int.md) | Yes|Prev value| +|new\_value|[int](../types/int.md) | Yes|New value| diff --git a/old_docs/API_docs_v104/constructors/channelFull.md b/old_docs/API_docs_v104/constructors/channelFull.md index 58174bd1..f046be90 100644 --- a/old_docs/API_docs_v104/constructors/channelFull.md +++ b/old_docs/API_docs_v104/constructors/channelFull.md @@ -42,7 +42,7 @@ Full channel |folder\_id|[int](../types/int.md) | Optional|Folder ID| |linked\_chat\_id|[int](../types/int.md) | Optional|Linked chat ID| |location|[ChannelLocation](../types/ChannelLocation.md) | Optional|Location| -|slowmode\_seconds|[int](../types/int.md) | Optional|| +|slowmode\_seconds|[int](../types/int.md) | Optional|If specified, users in supergroups will only be able to send one message every `slowmode_seconds` seconds| |slowmode\_next\_send\_date|[int](../types/int.md) | Optional|| |pts|[int](../types/int.md) | Yes|PTS| diff --git a/old_docs/API_docs_v104/constructors/channelParticipantAdmin.md b/old_docs/API_docs_v104/constructors/channelParticipantAdmin.md index b9268fe6..39a044f7 100644 --- a/old_docs/API_docs_v104/constructors/channelParticipantAdmin.md +++ b/old_docs/API_docs_v104/constructors/channelParticipantAdmin.md @@ -21,7 +21,7 @@ Channel participant admin |promoted\_by|[int](../types/int.md) | Yes|Promoted by| |date|[int](../types/int.md) | Yes|Date| |admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes|Admin rights| -|rank|[string](../types/string.md) | Optional|| +|rank|[string](../types/string.md) | Optional|Admin's rank, an arbitrary string| diff --git a/old_docs/API_docs_v104/constructors/channelParticipantCreator.md b/old_docs/API_docs_v104/constructors/channelParticipantCreator.md index a12f3638..0f47b2d0 100644 --- a/old_docs/API_docs_v104/constructors/channelParticipantCreator.md +++ b/old_docs/API_docs_v104/constructors/channelParticipantCreator.md @@ -15,7 +15,7 @@ Channel participant creator | Name | Type | Required | Description | |----------|---------------|----------|-------------| |user\_id|[int](../types/int.md) | Yes|User ID| -|rank|[string](../types/string.md) | Optional|| +|rank|[string](../types/string.md) | Optional|Creator rank, an arbitrary string| diff --git a/old_docs/API_docs_v104/constructors/codeSettings.md b/old_docs/API_docs_v104/constructors/codeSettings.md index 4b30c113..bce1d301 100644 --- a/old_docs/API_docs_v104/constructors/codeSettings.md +++ b/old_docs/API_docs_v104/constructors/codeSettings.md @@ -16,7 +16,7 @@ Code settings |----------|---------------|----------|-------------| |allow\_flashcall|[Bool](../types/Bool.md) | Optional|Allow flashcal?| |current\_number|[Bool](../types/Bool.md) | Optional|Current number?| -|allow\_app\_hash|[Bool](../types/Bool.md) | Optional|| +|allow\_app\_hash|[Bool](../types/Bool.md) | Optional|Whether to allow a persistent app hash| diff --git a/old_docs/API_docs_v104/constructors/help_appUpdate.md b/old_docs/API_docs_v104/constructors/help_appUpdate.md index 86a3c355..b9d1c2be 100644 --- a/old_docs/API_docs_v104/constructors/help_appUpdate.md +++ b/old_docs/API_docs_v104/constructors/help_appUpdate.md @@ -14,7 +14,7 @@ App update | Name | Type | Required | Description | |----------|---------------|----------|-------------| -|can\_not\_skip|[Bool](../types/Bool.md) | Optional|| +|can\_not\_skip|[Bool](../types/Bool.md) | Optional|Whether the update is skippable| |id|[int](../types/int.md) | Yes|ID| |version|[string](../types/string.md) | Yes|Version| |text|[string](../types/string.md) | Yes|Text| diff --git a/old_docs/API_docs_v104/constructors/inputStickerSetAnimatedEmoji.md b/old_docs/API_docs_v104/constructors/inputStickerSetAnimatedEmoji.md index faac3344..61e5c133 100644 --- a/old_docs/API_docs_v104/constructors/inputStickerSetAnimatedEmoji.md +++ b/old_docs/API_docs_v104/constructors/inputStickerSetAnimatedEmoji.md @@ -1,6 +1,6 @@ --- title: inputStickerSetAnimatedEmoji -description: inputStickerSetAnimatedEmoji attributes, type and example +description: Animated emojis stickerset image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: inputStickerSetAnimatedEmoji @@ -8,6 +8,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Animated emojis stickerset + diff --git a/old_docs/API_docs_v104/constructors/payments_paymentVerificationNeeded.md b/old_docs/API_docs_v104/constructors/payments_paymentVerificationNeeded.md index 4d42f0f9..1c38c2b3 100644 --- a/old_docs/API_docs_v104/constructors/payments_paymentVerificationNeeded.md +++ b/old_docs/API_docs_v104/constructors/payments_paymentVerificationNeeded.md @@ -1,6 +1,6 @@ --- title: payments.paymentVerificationNeeded -description: payments_paymentVerificationNeeded attributes, type and example +description: Payment verification needed image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: payments.paymentVerificationNeeded @@ -8,11 +8,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +Payment verification needed + ### Attributes: -| Name | Type | Required | -|----------|---------------|----------| -|url|[string](../types/string.md) | Yes| +| Name | Type | Required | Description | +|----------|---------------|----------|-------------| +|url|[string](../types/string.md) | Yes|3dsecure URL| diff --git a/old_docs/API_docs_v104/methods/README.md b/old_docs/API_docs_v104/methods/README.md index 5ca33d8d..0e352946 100644 --- a/old_docs/API_docs_v104/methods/README.md +++ b/old_docs/API_docs_v104/methods/README.md @@ -544,6 +544,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Toggle channel signatures: channels.toggleSignatures +* Toggle slow mode: channels.toggleSlowMode + * Toggle top peers: contacts.toggleTopPeers * Unblock a user: contacts.unblock diff --git a/old_docs/API_docs_v104/methods/channels_editAdmin.md b/old_docs/API_docs_v104/methods/channels_editAdmin.md index ac2baa5f..d51157ef 100644 --- a/old_docs/API_docs_v104/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v104/methods/channels_editAdmin.md @@ -16,7 +16,7 @@ Edit admin permissions of a user in a channel/supergroup |channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional| |user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional| |admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Admin rights | Yes| -|rank|[string](../types/string.md) | | Yes| +|rank|[string](../types/string.md) | Admin rank, an arbitrary string | Yes| ### Return type: [Updates](../types/Updates.md) diff --git a/old_docs/API_docs_v104/methods/channels_toggleSlowMode.md b/old_docs/API_docs_v104/methods/channels_toggleSlowMode.md index 328c0e20..6dc12062 100644 --- a/old_docs/API_docs_v104/methods/channels_toggleSlowMode.md +++ b/old_docs/API_docs_v104/methods/channels_toggleSlowMode.md @@ -1,18 +1,20 @@ --- title: channels.toggleSlowMode -description: channels.toggleSlowMode parameters, return type and example +description: Toggle slow mode image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: channels.toggleSlowMode [Back to methods index](index.md) +Toggle slow mode + ### Parameters: -| Name | Type | Required | -|----------|---------------|----------| -|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Optional| -|seconds|[int](../types/int.md) | Yes| +| Name | Type | Description | Required | +|----------|---------------|-------------|----------| +|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | Supergroup | Optional| +|seconds|[int](../types/int.md) | Users will only be able to send one message every `seconds` seconds, `0` to disable the limitation | Yes| ### Return type: [Updates](../types/Updates.md)