This commit is contained in:
Daniil Gentili 2019-08-15 20:30:02 +02:00
parent cb0704e70a
commit 1b4517168b
28 changed files with 80 additions and 55 deletions

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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

View File

@ -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|

View File

@ -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)

View File

@ -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)

View File

@ -544,6 +544,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="channels_toggleSignatures.html" name="channels_toggleSignatures">Toggle channel signatures: channels.toggleSignatures</a>
* <a href="channels_toggleSlowMode.html" name="channels_toggleSlowMode">Toggle slow mode: channels.toggleSlowMode</a>
* <a href="contacts_toggleTopPeers.html" name="contacts_toggleTopPeers">Toggle top peers: contacts.toggleTopPeers</a>
* <a href="contacts_unblock.html" name="contacts_unblock">Unblock a user: contacts.unblock</a>

View File

@ -437,6 +437,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_initTakeoutSession.html" name="account_initTakeoutSession">Start account exporting session: account.initTakeoutSession</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_unregisterDevice.html" name="account_unregisterDevice">Stop sending PUSH notifications to app: account.unregisterDevice</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_toggleSignatures.html" name="channels_toggleSignatures">Toggle channel signatures: channels.toggleSignatures</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_toggleSlowMode.html" name="channels_toggleSlowMode">Toggle slow mode: channels.toggleSlowMode</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_toggleTopPeers.html" name="contacts_toggleTopPeers">Toggle top peers: contacts.toggleTopPeers</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_unblock.html" name="contacts_unblock">Unblock a user: contacts.unblock</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_updateStatus.html" name="account_updateStatus">Update online status: account.updateStatus</a>

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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|

View File

@ -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

View File

@ -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|

View File

@ -544,6 +544,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="channels_toggleSignatures.html" name="channels_toggleSignatures">Toggle channel signatures: channels.toggleSignatures</a>
* <a href="channels_toggleSlowMode.html" name="channels_toggleSlowMode">Toggle slow mode: channels.toggleSlowMode</a>
* <a href="contacts_toggleTopPeers.html" name="contacts_toggleTopPeers">Toggle top peers: contacts.toggleTopPeers</a>
* <a href="contacts_unblock.html" name="contacts_unblock">Unblock a user: contacts.unblock</a>

View File

@ -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)

View File

@ -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)