Bugfixes
This commit is contained in:
parent
0cffe39d2c
commit
e5798a41db
@ -31,7 +31,8 @@
|
||||
"amphp/websocket-client": "dev-master"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpdocumentor/reflection-docblock": "^3.1"
|
||||
"phpdocumentor/reflection-docblock": "^3.1",
|
||||
"ennexa/amp-update-cache": "dev-master"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-libtgvoip": "Install the php-libtgvoip extension to make phone calls (https://github.com/danog/php-libtgvoip)",
|
||||
|
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 03833e278142e2b6bec5850fa647d341115403b1
|
||||
Subproject commit 3dbba4bc60dc830c08d5343e438bcd003ba9d1c5
|
@ -837,7 +837,7 @@ class MTProto implements TLCallback
|
||||
if ($this->config['expires'] > time()) {
|
||||
return $this->config;
|
||||
}
|
||||
$this->config = empty($config) ? yield $this->method_call_async_read('help.getConfig', $config, $options) : $config;
|
||||
$this->config = empty($config) ? yield $this->method_call_async_read('help.getConfig', $config, empty($options) ? ['datacenter' => $this->datacenter->curdc] : $options) : $config;
|
||||
yield $this->parse_config();
|
||||
|
||||
return $this->config;
|
||||
|
@ -83,7 +83,7 @@ trait AuthKeyHandler
|
||||
$this->check_G($g_b, $dh_config['p']);
|
||||
|
||||
try {
|
||||
$res = $this->method_call('phone.acceptCall', ['peer' => $call, 'g_b' => $g_b->toBytes(), 'protocol' => ['_' => 'phoneCallProtocol', 'udp_reflector' => true, 'udp_p2p' => $call['p2p_allowed'], 'min_layer' => 65, 'max_layer' => 65]], ['datacenter' => $this->datacenter->curdc]);
|
||||
$res = $this->method_call('phone.acceptCall', ['peer' => $call, 'g_b' => $g_b->toBytes(), 'protocol' => ['_' => 'phoneCallProtocol', 'udp_reflector' => true, 'udp_p2p' => true, 'min_layer' => 65, 'max_layer' => 65]], ['datacenter' => $this->datacenter->curdc]);
|
||||
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||
if ($e->rpc === 'CALL_ALREADY_ACCEPTED') {
|
||||
$this->logger->logger(sprintf(\danog\MadelineProto\Lang::$current_lang['call_already_accepted'], $call['id']));
|
||||
|
Loading…
Reference in New Issue
Block a user