danog/MadelineProto

getHistory generate exception MSG_ID_INVALID

sergeibochkarev opened this issue · 1 comments

When I call method getHistory

   $this
       ->madelineProto
       ->messages
       ->getHistory([
            'peer' => 'kind_of_skin',
           'offset_id' => 0,
           'offset_date' => 0,
           'add_offset' => 0,
           'limit' => 100,
           'max_id' => 2147483647,
           'min_id' => 0,
       ]);

it's throw exception RPCErrorException where $e->rpc === 'MSG_ID_INVALID'

How to avoid this exception and get history of messages of this channel?

After clean up table *_usernames - this error has gone