mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 06:34:41 +01:00
Update docs
This commit is contained in:
parent
2c90b1d96b
commit
06b6d971dd
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 989550c157c6aeb96d8dbe1ea625d61932efb993
|
||||
Subproject commit 571125c63dbd28631bd55bc073038e01cd71baaa
|
@ -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>
|
||||
|
||||
|
@ -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.
|
||||
|
@ -23,6 +23,8 @@ use danog\MadelineProto\Magic;
|
||||
|
||||
/**
|
||||
* Continuous mode IGE implementation.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
abstract class IGE
|
||||
{
|
||||
|
@ -21,6 +21,8 @@ namespace danog\MadelineProto\MTProtoTools\Crypt;
|
||||
|
||||
/**
|
||||
* Openssl IGE implementation.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class IGEOpenssl extends IGE
|
||||
{
|
||||
|
@ -23,6 +23,8 @@ use phpseclib3\Crypt\AES;
|
||||
|
||||
/**
|
||||
* Phpseclib IGE implementation.
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
final class IGEPhpseclib extends IGE
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user