Merge branch 'master' of https://github.com/danog/MadelineProto
This commit is contained in:
commit
4a6335a8b2
@ -39,8 +39,9 @@ class Logger
|
||||
self::$has_thread = class_exists('\Thread') && method_exists('\Thread', 'getCurrentThread');
|
||||
self::$BIG_ENDIAN = (pack('L', 1) === pack('N', 1));
|
||||
self::$bigint = PHP_INT_SIZE < 8;
|
||||
if (class_exists('\danog\MadelineProto\VoIP')) \Threaded::extend('\danog\MadelineProto\VoIP');
|
||||
|
||||
if (class_exists('\danog\MadelineProto\VoIP')) {
|
||||
\Threaded::extend('\danog\MadelineProto\VoIP');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -67,7 +67,7 @@ class MTProto extends \Volatile
|
||||
'messages.requestEncryption' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats',
|
||||
|
||||
'phone.requestCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
|
||||
'phone.acceptCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
|
||||
'phone.acceptCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
|
||||
'phone.confirmCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
|
||||
'phone.discardCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
|
||||
|
||||
|
@ -170,7 +170,6 @@ trait AuthKeyHandler
|
||||
\danog\MadelineProto\Logger::log(['Discarding call '.$call.'...'], \danog\MadelineProto\Logger::VERBOSE);
|
||||
//var_dump(debug_backtrace(0)[0]);
|
||||
|
||||
|
||||
if (isset($this->calls[$call])) {
|
||||
if (isset($this->calls[$call]['InputPhoneCall'])) {
|
||||
try {
|
||||
|
@ -100,10 +100,11 @@ class pony extends \danog\MadelineProto\VoIP
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
public function debug($state) {
|
||||
var_dump("DEBUG $state"); flush();
|
||||
|
||||
|
||||
|
||||
public function debug($state)
|
||||
{
|
||||
var_dump("DEBUG $state");
|
||||
flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user