update
This commit is contained in:
parent
87453af759
commit
c2b5275819
@ -384,7 +384,7 @@ class API extends InternalDoc
|
||||
//Logger::log(\danog\MadelineProto\Lang::$current_lang['serializing_madelineproto']);
|
||||
|
||||
if ($filename == '') {
|
||||
throw new \danog\MadelineProto\Exception('Empty filename');
|
||||
return;
|
||||
}
|
||||
if (isset($this->API->flushSettings) && $this->API->flushSettings) {
|
||||
$this->API->flushSettings = false;
|
||||
|
@ -4703,9 +4703,9 @@ class InternalDoc extends APIFactory
|
||||
* @param string $text Text
|
||||
* @param integer $length Length
|
||||
*
|
||||
* @return string
|
||||
* @return array
|
||||
*/
|
||||
public function mbStrSplit(string $text, int $length): string
|
||||
public function mbStrSplit(string $text, int $length): array
|
||||
{
|
||||
return \danog\MadelineProto\MTProto::mbStrSplit($text, $length);
|
||||
}
|
||||
|
@ -557,7 +557,7 @@ trait BotAPI
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Convert markdown and HTML messages
|
||||
* Convert markdown and HTML messages.
|
||||
*
|
||||
* @param array $arguments Arguments
|
||||
*
|
||||
@ -603,7 +603,7 @@ trait BotAPI
|
||||
}
|
||||
|
||||
/**
|
||||
* Split too long message into chunks
|
||||
* Split too long message into chunks.
|
||||
*
|
||||
* @param array $args Arguments
|
||||
*
|
||||
|
@ -874,7 +874,27 @@ class InternalDoc extends APIFactory
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$config, $extra]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Logger.
|
||||
*
|
||||
* @param string $param Parameter
|
||||
* @param int $level Logging level
|
||||
* @param string $file File where the message originated
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function logger($param, int $level = \danog\MadelineProto\Logger::NOTICE, string $file = '', array $extra = []): void
|
||||
{
|
||||
$this->__call(__FUNCTION__, [$param, $level, $file, $extra]);
|
||||
}
|
||||
/**
|
||||
* Call lite method.
|
||||
*
|
||||
* @param string $methodName Method name
|
||||
* @param array $args Arguments
|
||||
*
|
||||
* @return \Generator
|
||||
*/
|
||||
public function methodCall(string $methodName, array $args = [
|
||||
], array $aargs = [
|
||||
], array $extra = [])
|
||||
@ -897,18 +917,18 @@ class InternalDoc extends APIFactory
|
||||
*
|
||||
* @param array $parameters Parameters
|
||||
*
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
public function botAPItoMTProto(array $parameters, array $extra = [])
|
||||
public function botAPItoMTProto(array $parameters, array $extra = []): array
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$parameters, $extra]);
|
||||
}
|
||||
/**
|
||||
* Get TL method namespaces.
|
||||
*
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
public function getMethodNamespaces(array $extra = [])
|
||||
public function getMethodNamespaces(array $extra = []): array
|
||||
{
|
||||
return $this->__call(__FUNCTION__, [$extra]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user