1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 06:34:41 +01:00

Update docs

This commit is contained in:
Daniil Gentili 2021-12-09 13:33:44 +01:00
parent 2c90b1d96b
commit 06b6d971dd
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
6 changed files with 14 additions and 8 deletions

2
docs

@ -1 +1 @@
Subproject commit 989550c157c6aeb96d8dbe1ea625d61932efb993
Subproject commit 571125c63dbd28631bd55bc073038e01cd71baaa

View File

@ -97,7 +97,7 @@ trait Methods
if (isset($this->tdDescriptions['methods'][$method])) {
$desc = \Parsedown::instance()->line(\trim(\explode("\n", $this->tdDescriptions['methods'][$method]['description'])[0], '.'));
$dom = new \DOMDocument();
$dom->loadHTML(\htmlspecialchars_decode($desc));
$dom->loadHTML(\mb_convert_encoding($desc, 'HTML-ENTITIES', 'UTF-8'));
$desc = $dom->textContent;
$this->human_docs_methods[$this->tdDescriptions['methods'][$method]['description'].': '.$method] = '* <a href="'.$method.'.html" name="'.$method.'">'.$desc.': '.$method.'</a>

View File

@ -5782,11 +5782,11 @@ class InternalDoc extends APIFactory
*
* @param int $id Bot API channel ID
*
* @return float|int
* @return int
*/
public function fromSupergroup($id)
public function fromSupergroup($id): int
{
return $this->__call(__FUNCTION__, [$id]);
return \danog\MadelineProto\MTProto::fromSupergroup($id);
}
/**
* When were full info for this chat last cached.
@ -7033,11 +7033,11 @@ class InternalDoc extends APIFactory
*
* @param int $id MTProto channel ID
*
* @return float|int
* @return int
*/
public function toSupergroup($id)
public function toSupergroup($id): int
{
return $this->__call(__FUNCTION__, [$id]);
return \danog\MadelineProto\MTProto::toSupergroup($id);
}
/**
* Escape type name.

View File

@ -23,6 +23,8 @@ use danog\MadelineProto\Magic;
/**
* Continuous mode IGE implementation.
*
* @internal
*/
abstract class IGE
{

View File

@ -21,6 +21,8 @@ namespace danog\MadelineProto\MTProtoTools\Crypt;
/**
* Openssl IGE implementation.
*
* @internal
*/
final class IGEOpenssl extends IGE
{

View File

@ -23,6 +23,8 @@ use phpseclib3\Crypt\AES;
/**
* Phpseclib IGE implementation.
*
* @internal
*/
final class IGEPhpseclib extends IGE
{