mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 16:31:11 +01:00
Serialize when the session is created
This commit is contained in:
parent
55fd50afb0
commit
a1f3a41e9f
@ -217,6 +217,9 @@ final class API extends AbstractAPI
|
||||
$appInfo->setApiHash($app['api_hash']);
|
||||
}
|
||||
$this->wrapper->setAPI(new MTProto($settings, $this->wrapper));
|
||||
$this->wrapper->logger('Prompting initial serialization...');
|
||||
$this->wrapper->serialize();
|
||||
$this->wrapper->logger('Done initial serialization!');
|
||||
$this->wrapper->logger(Lang::$current_lang['madelineproto_ready'], Logger::NOTICE);
|
||||
}
|
||||
|
||||
|
@ -711,7 +711,7 @@ abstract class InternalDoc
|
||||
*
|
||||
* @param array $config Current config
|
||||
*/
|
||||
public function getConfig(array $config = [
|
||||
public function getConfig(array $config = [
|
||||
]): array
|
||||
{
|
||||
return $this->wrapper->getAPI()->getConfig($config);
|
||||
@ -1102,7 +1102,7 @@ abstract class InternalDoc
|
||||
* @param array{offset?: int, limit?: int, timeout?: float} $params Params
|
||||
* @return list<array{update_id: mixed, update: mixed}>
|
||||
*/
|
||||
public function getUpdates(array $params = [
|
||||
public function getUpdates(array $params = [
|
||||
]): array
|
||||
{
|
||||
return $this->wrapper->getAPI()->getUpdates($params);
|
||||
|
@ -4,7 +4,7 @@ namespace danog\MadelineProto\Namespace;
|
||||
|
||||
final class Blacklist
|
||||
{
|
||||
public const BLACKLIST = [
|
||||
public const BLACKLIST = [
|
||||
'account.updatePasswordSettings' => 'You cannot use this method directly; use $MadelineProto->update2fa($params), instead (see https://docs.madelineproto.xyz for more info)',
|
||||
'account.getPasswordSettings' => 'You cannot use this method directly; use $MadelineProto->update2fa($params), instead (see https://docs.madelineproto.xyz for more info)',
|
||||
'messages.receivedQueue' => 'You cannot use this method directly',
|
||||
|
Loading…
x
Reference in New Issue
Block a user