Update docs
This commit is contained in:
parent
f6772e49de
commit
05a859ea50
@ -86,8 +86,7 @@ You can find examples for nearly every MadelineProto function in
|
|||||||
* [Handling updates (new messages)](https://docs.madelineproto.xyz/docs/UPDATES.html)
|
* [Handling updates (new messages)](https://docs.madelineproto.xyz/docs/UPDATES.html)
|
||||||
* [Self-restart on webhosts](https://docs.madelineproto.xyz/docs/UPDATES.html#self-restart-on-webhosts)
|
* [Self-restart on webhosts](https://docs.madelineproto.xyz/docs/UPDATES.html#self-restart-on-webhosts)
|
||||||
* [Async Event driven](https://docs.madelineproto.xyz/docs/UPDATES.html#async-event-driven)
|
* [Async Event driven](https://docs.madelineproto.xyz/docs/UPDATES.html#async-event-driven)
|
||||||
* [Multi-account: Async Event driven](https://docs.madelineproto.xyz/docs/UPDATES.html#async-event-driven)
|
* [Async Event driven multi-account](https://docs.madelineproto.xyz/docs/UPDATES.html#async-event-driven-multiaccount)
|
||||||
* [Async Callback](https://docs.madelineproto.xyz/docs/UPDATES.html#async-callback)
|
|
||||||
* [Noop (default)](https://docs.madelineproto.xyz/docs/UPDATES.html#noop)
|
* [Noop (default)](https://docs.madelineproto.xyz/docs/UPDATES.html#noop)
|
||||||
* [Fetch all updates from the beginning](https://docs.madelineproto.xyz/docs/UPDATES.html#fetch-all-updates-from-the-beginning)
|
* [Fetch all updates from the beginning](https://docs.madelineproto.xyz/docs/UPDATES.html#fetch-all-updates-from-the-beginning)
|
||||||
* [Settings](https://docs.madelineproto.xyz/docs/SETTINGS.html)
|
* [Settings](https://docs.madelineproto.xyz/docs/SETTINGS.html)
|
||||||
@ -352,7 +351,7 @@ You can find examples for nearly every MadelineProto function in
|
|||||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getTmpPassword.html" name="account.getTmpPassword">Get temporary payment password: account.getTmpPassword</a>
|
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getTmpPassword.html" name="account.getTmpPassword">Get temporary payment password: account.getTmpPassword</a>
|
||||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getAdminLog.html" name="channels.getAdminLog">Get the admin log of a channel/supergroup: channels.getAdminLog</a>
|
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getAdminLog.html" name="channels.getAdminLog">Get the admin log of a channel/supergroup: channels.getAdminLog</a>
|
||||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getSearchCounters.html" name="messages.getSearchCounters">Get the number of results that would be found by a messages.search call with the same parameters: messages.getSearchCounters</a>
|
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getSearchCounters.html" name="messages.getSearchCounters">Get the number of results that would be found by a messages.search call with the same parameters: messages.getSearchCounters</a>
|
||||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getParticipants.html" name="channels.getParticipants">Get the participants of a channel: channels.getParticipants</a>
|
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels.getParticipants.html" name="channels.getParticipants">Get the participants of a supergroup/channel: channels.getParticipants</a>
|
||||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getTheme.html" name="account.getTheme">Get theme information: account.getTheme</a>
|
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getTheme.html" name="account.getTheme">Get theme information: account.getTheme</a>
|
||||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getUnreadMentions.html" name="messages.getUnreadMentions">Get unread messages where we were mentioned: messages.getUnreadMentions</a>
|
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getUnreadMentions.html" name="messages.getUnreadMentions">Get unread messages where we were mentioned: messages.getUnreadMentions</a>
|
||||||
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getWebAuthorizations.html" name="account.getWebAuthorizations">Get web login widget authorizations: account.getWebAuthorizations</a>
|
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account.getWebAuthorizations.html" name="account.getWebAuthorizations">Get web login widget authorizations: account.getWebAuthorizations</a>
|
||||||
|
2
docs
2
docs
@ -1 +1 @@
|
|||||||
Subproject commit 2b94d12fbdf270e2d329e192dfca040260274e40
|
Subproject commit e15b11644a7e763127ed6439ac0aec84944e288e
|
@ -33,6 +33,9 @@ use danog\MadelineProto\Stream\MTProtoTransport\HttpStream;
|
|||||||
use danog\MadelineProto\Stream\Transport\WssStream;
|
use danog\MadelineProto\Stream\Transport\WssStream;
|
||||||
use JsonSerializable;
|
use JsonSerializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Datacenter connection
|
||||||
|
*/
|
||||||
class DataCenterConnection implements JsonSerializable
|
class DataCenterConnection implements JsonSerializable
|
||||||
{
|
{
|
||||||
const READ_WEIGHT = 1;
|
const READ_WEIGHT = 1;
|
||||||
@ -65,13 +68,13 @@ class DataCenterConnection implements JsonSerializable
|
|||||||
/**
|
/**
|
||||||
* Connections open to a certain DC.
|
* Connections open to a certain DC.
|
||||||
*
|
*
|
||||||
* @var array<string, Connection>
|
* @var array<int, Connection>
|
||||||
*/
|
*/
|
||||||
private $connections = [];
|
private $connections = [];
|
||||||
/**
|
/**
|
||||||
* Connection weights.
|
* Connection weights.
|
||||||
*
|
*
|
||||||
* @var array<string, int>
|
* @var array<int, int>
|
||||||
*/
|
*/
|
||||||
private $availableConnections = [];
|
private $availableConnections = [];
|
||||||
/**
|
/**
|
||||||
@ -394,7 +397,7 @@ class DataCenterConnection implements JsonSerializable
|
|||||||
*
|
*
|
||||||
* @param integer $count Number of sockets to open
|
* @param integer $count Number of sockets to open
|
||||||
*
|
*
|
||||||
* @return void
|
* @return \Generator
|
||||||
*/
|
*/
|
||||||
private function connectMore(int $count): \Generator
|
private function connectMore(int $count): \Generator
|
||||||
{
|
{
|
||||||
|
@ -175,6 +175,7 @@ trait Constructors
|
|||||||
$description = isset($this->TL->getDescriptions()['constructors'][$constructor]) ? $this->TL->getDescriptions()['constructors'][$constructor]['description'] : $constructor.' attributes, type and example';
|
$description = isset($this->TL->getDescriptions()['constructors'][$constructor]) ? $this->TL->getDescriptions()['constructors'][$constructor]['description'] : $constructor.' attributes, type and example';
|
||||||
$symFile = \str_replace('.', '_', $constructor.$layer);
|
$symFile = \str_replace('.', '_', $constructor.$layer);
|
||||||
$redir = $symFile !== $constructor.$layer ? "\nredirect_from: /API_docs/constructors/{$symFile}.html" : '';
|
$redir = $symFile !== $constructor.$layer ? "\nredirect_from: /API_docs/constructors/{$symFile}.html" : '';
|
||||||
|
$description = \rtrim(\explode("\n", $description)[0], ':');
|
||||||
$header = '---
|
$header = '---
|
||||||
title: '.$constructor.'
|
title: '.$constructor.'
|
||||||
description: '.$description.'
|
description: '.$description.'
|
||||||
|
@ -203,6 +203,7 @@ trait Methods
|
|||||||
$description = isset($this->td_descriptions['methods'][$method]) ? $this->td_descriptions['methods'][$method]['description'] : $method.' parameters, return type and example';
|
$description = isset($this->td_descriptions['methods'][$method]) ? $this->td_descriptions['methods'][$method]['description'] : $method.' parameters, return type and example';
|
||||||
$symFile = \str_replace('.', '_', $method);
|
$symFile = \str_replace('.', '_', $method);
|
||||||
$redir = $symFile !== $method ? "\nredirect_from: /API_docs/methods/{$symFile}.html" : '';
|
$redir = $symFile !== $method ? "\nredirect_from: /API_docs/methods/{$symFile}.html" : '';
|
||||||
|
$description = \rtrim(\explode("\n", $description)[0], ':');
|
||||||
$header = $this->template('Method', $method, $description, $redir, StrTools::markdownEscape($method));
|
$header = $this->template('Method', $method, $description, $redir, StrTools::markdownEscape($method));
|
||||||
if ($this->td) {
|
if ($this->td) {
|
||||||
$header .= "YOU CANNOT USE THIS METHOD IN MADELINEPROTO\n\n\n\n\n";
|
$header .= "YOU CANNOT USE THIS METHOD IN MADELINEPROTO\n\n\n\n\n";
|
||||||
|
@ -3559,7 +3559,7 @@ interface channels
|
|||||||
public function getMessages($params);
|
public function getMessages($params);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the participants of a channel.
|
* Get the participants of a [supergroup/channel](https://core.telegram.org/api/channel).
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* * `InputChannel` **channel** - Channel
|
* * `InputChannel` **channel** - Channel
|
||||||
|
Loading…
Reference in New Issue
Block a user