mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 15:04:40 +01:00
Fixes
This commit is contained in:
parent
ac47aa15fc
commit
30c43ab254
@ -4,7 +4,7 @@ Created by <a href="https://daniil.it" target="_blank" rel="noopener">Daniil Gen
|
||||
|
||||
`#StandWithUkraine 🇺🇦`
|
||||
|
||||
[![status-badge](https://ci.daniil.it/api/badges/danog/MadelineProto/status.svg?branch=stable)](https://ci.daniil.it/danog/MadelineProto/branches/stable)
|
||||
[![status-badge](https://ci.daniil.it/api/badges/danog/MadelineProto/status.svg?branch=v8)](https://ci.daniil.it/danog/MadelineProto/branches/v8)
|
||||
|
||||
Do join the official channel, [@MadelineProto](https://t.me/MadelineProto) and the [support groups](https://t.me/pwrtelegramgroup)!
|
||||
|
||||
|
@ -874,7 +874,7 @@ trait PeerHandler
|
||||
*/
|
||||
public function getFullInfo(mixed $id): array
|
||||
{
|
||||
$partial = ($this->getInfo($id));
|
||||
$partial = $this->getInfo($id);
|
||||
if (\time() - ($this->fullChatLastUpdated($partial['bot_api_id'])) < $this->getSettings()->getPeer()->getFullInfoCacheTime()) {
|
||||
return \array_merge($partial, $this->full_chats[$partial['bot_api_id']]);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ final class ReferenceDatabase implements TLCallback
|
||||
\ksort($locationValue['origins']);
|
||||
$this->db[$location] = $locationValue;
|
||||
$count = 0;
|
||||
foreach (($this->db[$location])['origins'] as $originType => &$origin) {
|
||||
foreach ($this->db[$location]['origins'] as $originType => $origin) {
|
||||
$count++;
|
||||
$this->API->logger->logger("Try {$count} refreshing file reference with origin type {$originType}", Logger::VERBOSE);
|
||||
switch ($originType) {
|
||||
|
@ -282,9 +282,9 @@ final class Magic
|
||||
self::$zerowebhost = isset($_SERVER['SERVER_ADMIN']) && \strpos($_SERVER['SERVER_ADMIN'], '000webhost.io');
|
||||
self::$can_getmypid = !self::$altervista && !self::$zerowebhost;
|
||||
self::$version = null;
|
||||
if (\file_exists(__DIR__.'/../.git/refs/heads/stable')) {
|
||||
if (\file_exists(__DIR__.'/../.git/refs/heads/v8')) {
|
||||
try {
|
||||
self::$version = \trim(@\file_get_contents(__DIR__.'/../.git/refs/heads/stable'));
|
||||
self::$version = \trim(@\file_get_contents(__DIR__.'/../.git/refs/heads/v8'));
|
||||
} catch (Throwable $e) {
|
||||
}
|
||||
}
|
||||
|
@ -30,8 +30,8 @@ $API = new API(
|
||||
$API->async(true);
|
||||
$API->loop(
|
||||
function () use ($API) {
|
||||
yield $API->connect(__DIR__.'/ton-lite-client-test1.config.json');
|
||||
var_dump(yield $API->liteServer->getTime());
|
||||
$API->connect(__DIR__.'/ton-lite-client-test1.config.json');
|
||||
var_dump($API->liteServer->getTime());
|
||||
}
|
||||
);
|
||||
```
|
||||
|
@ -20,8 +20,8 @@ if (!isset($argv[3])) {
|
||||
|
||||
$p = new Phar(__DIR__.'/../'.$argv[2], 0, $argv[2]);
|
||||
$p->buildFromDirectory(realpath($argv[1]), '/^((?!tests).)*(\.php|\.py|\.exe|\.tl|\.json|\.dat|\.h)$/i');
|
||||
$p->addFromString('vendor/danog/madelineproto/.git/refs/heads/stable', $argv[3]);
|
||||
$p->addFromString('.git/refs/heads/stable', $argv[3]);
|
||||
$p->addFromString('vendor/danog/madelineproto/.git/refs/heads/v8', $argv[3]);
|
||||
$p->addFromString('.git/refs/heads/v8', $argv[3]);
|
||||
|
||||
$p->setStub('<?php
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user