mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 05:34:42 +01:00
Small magna bugfix
This commit is contained in:
parent
30426db3df
commit
e6bbb00464
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit ddb2e4f76938b69ceac6e4615901c642accae1ef
|
||||
Subproject commit 8f6784adf5bca1dbab98ba1ec69ab52050633ca1
|
@ -161,7 +161,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
|
||||
$call->playOnHold($songs);
|
||||
if ($call->getCallState() === \danog\MadelineProto\VoIP::CALL_STATE_INCOMING) {
|
||||
if ($call->accept() === false) {
|
||||
$MadelineProto->logger('DID NOT ACCEPT A CALL');
|
||||
$this->logger('DID NOT ACCEPT A CALL');
|
||||
}
|
||||
}
|
||||
if ($call->getCallState() !== \danog\MadelineProto\VoIP::CALL_STATE_ENDED) {
|
||||
@ -373,7 +373,7 @@ if (!class_exists('\\danog\\MadelineProto\\VoIPServerConfig')) {
|
||||
'audio_congestion_window' => 4 * 1024,
|
||||
]
|
||||
);
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['secret_chats' => ['accept_chats' => false], 'logger' => ['logger' => 3, 'logger_level' => 5, 'logger_param' => getcwd().'/MadelineProto.log'], 'updates' => ['getdifference_interval' => 10], 'serialization' => ['serialization_interval' => 30], 'flood_timeout' => ['wait_if_lt' => 86400]]);
|
||||
$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['secret_chats' => ['accept_chats' => false], 'logger' => ['logger' => 3, 'logger_level' => 5, 'logger_param' => getcwd().'/MadelineProto.log'], 'updates' => ['getdifference_interval' => 10], 'serialization' => ['serialization_interval' => 30, 'cleanup_before_serialization' => true], 'flood_timeout' => ['wait_if_lt' => 86400]]);
|
||||
$MadelineProto->start();
|
||||
foreach (['calls', 'programmed_call', 'my_users'] as $key) {
|
||||
if (isset($MadelineProto->API->storage[$key])) {
|
||||
|
Loading…
Reference in New Issue
Block a user