Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working getHistory after update MP 8.3.2 >>> 8.3.3 #1565

Open
Trankvil opened this issue Oct 15, 2024 · 0 comments
Open

not working getHistory after update MP 8.3.2 >>> 8.3.3 #1565

Trankvil opened this issue Oct 15, 2024 · 0 comments

Comments

@Trankvil
Copy link

Trankvil commented Oct 15, 2024

hi guys.
i use next code

$id_channel = "-1001735643670";

$data = array(
		'peer' => $id_channel, //название_канала, должно начинаться с @, например @breakingmash, все остальные параметры, кроме limit, можно оставить равными 0
		'offset_id' => 0, 
		'offset_date' => 0, 
		'add_offset' => 0, 
		'limit' => 1000, //Количество постов, которые вернет клиент
		'max_id' => 1259, //Максимальный id поста
		'min_id' => 1247, //Минимальный id поста - использую для пагинации, при  0 возвращаются последние посты.
		'hash' => 0
 );

             $response = $MadelineProto->messages->getHistory($data);

he is code its work last 4 days. today, after update mp on version 8.3.3, he not working,
i can next error:

\danog\MadelineProto\Exception: This peer is not present in the internal peer database in phar:///home/c///public_html/adminka/madeline-8.3.3.phar/vendor/danog/madelineproto/src/MTProtoTools/PeerHandler.php:411
Revision: 8.3.3
TL Trace:
<br>
PeerHandler.php(315): getInfo(-1001735643670,0)<br>
TL.php(590): getInputPeer("-1001735643670")<br>
While serializing: messages.getHistory['peer']<br>
Connection.php(562): serializeMethod("messages.getHistory",{"peer":"-1001735643670","offset_id":0,"offset_date":0,"add_offset":0,"limit":1000,"max_id":1259,"min_id":1247,"hash":0})<br>
CallHandler.php(189): sendMessage({"contentRelated":true,"userRelated":false,"constructor":"messages.getHistory","type":"messages.Messages","isMethod":true,"unencrypted":false,"subtype":null,"fileRelated":false,"previousQueuedMessage":null,"floodWaitLimit":null,"takeoutId":null,"businessConnectionId":null,"cancellation":null})<br>
CallHandler.php(91): methodCallAsyncWrite("messages.getHistory",{"peer":"-1001735643670","offset_id":0,"offset_date":0,"add_offset":0,"limit":1000,"max_id":1259,"min_id":1247,"hash":0})<br>
CallHandler.php(45): methodCallAsyncRead("messages.getHistory",{"peer":"-1001735643670","offset_id":0,"offset_date":0,"add_offset":0,"limit":1000,"max_id":1259,"min_id":1247,"hash":0})<br>
AbstractServer.php(256): methodCallAsyncRead("messages.getHistory",{"peer":"-1001735643670","offset_id":0,"offset_date":0,"add_offset":0,"limit":1000,"max_id":1259,"min_id":1247,"hash":0},null)<br>
AbstractDriver.php(425): clientRequest({},2,["methodCallAsyncRead",["messages.getHistory",{"peer":"-1001735643670","offset_id":0,"offset_date":0,"add_offset":0,"limit":1000,"max_id":1259,"min_id":1247,"hash":0},null]])<br>
AbstractDriver.php(616): invokeMicrotasks()<br>
Revolt\EventLoop\Internal\{closure}()<br>
DriverSuspension.php(64): resume({"_":"messages.chats","chats":[]})<br>
AbstractDriver.php(425): Revolt\EventLoop\Internal\{closure}()<br>
AbstractDriver.php(616): invokeMicrotasks()<br>
Revolt\EventLoop\Internal\{closure}()<br>
AbstractDriver.php(497): resume()<br>
AbstractDriver.php(553): invokeCallbacks()<br>
Revolt\EventLoop\Internal\{closure}()<br>
AbstractDriver.php(94): resume()<br>
DriverSuspension.php(117): Revolt\EventLoop\Internal\{closure}()<br>
Future.php(251): suspend()<br>
AbstractServer.php(176): await()<br>
entry.php(119): waitShutdown()<br>
entry.php(154): danog\MadelineProto\Ipc\Runner\{closure}()<br>
madeline-8.3.3.phar(52): require_once("phar:\/\/\/home\/c\/\/\/public_html\/adminka\/madeline-8.3.3.phar\/vendor\/danog\/madelineproto\/src\/Ipc\/Runner\/entry.php")<br>
madeline.php(173): require_once("\/home\/c\//\/public_html\/adminka\/madeline-8.3.3.phar")<br>
madeline.php(211): load("8.3.3")<br>
madeline.php(249): install()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant