danog / MadelineProto

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

getInfo and getFullInfo does not return username value for User #1346

Closed marlenus closed 1 year ago

marlenus commented 1 year ago

Request getInfo or getFullInfo returns information, but without username, although user account definitely has this value.

Also, sometimes it gives an error for existing accounts - RPCErrorException: USER_ID_INVALID

danog commented 1 year ago

In some conditions, only a usernames field is populated instead of username, containing an array of usernames instead of a single username.