danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.74k stars 617 forks source link

readStories always return null #1467

Closed mohhamedion closed 5 months ago

mohhamedion commented 5 months ago

$peer_id = // id;

$Vector_of_int = $MadelineProto->stories->readStories($peer_id); am are trying to access stories for a user, but the method readStories is always returning null, even though the user i'm trying to access does already have stories.

Logs


Logger:                 MadelineProto 8.0.0-beta188
Logger:                 Copyright (C) 2016-2024 Daniil Gentili
Logger:                 Licensed under AGPLv3
Logger:                 https://github.com/danog/MadelineProto
Serialization:          MadelineProto is starting, please wait...
Serialization:          Connected to IPC socket!
APIWrapper:             Shutting down MadelineProto (danog\MadelineProto\API)
APIWrapper:             Prompting final serialization...
APIWrapper:             Done final serialization!
danog commented 5 months ago

try var_dumping the exact result, what are you getting?

mohhamedion commented 5 months ago

@danog empty array, or array with ids

I think its works now, lately i was getting null, or exceptions because it's missing max_id (tho it's optional in the documentation) i put a random number