xtrime-ru / TelegramApiServer

Fast, simple, async php telegram api server: MadelineProto + Amp HTTP Server
https://tg.i-c-a.su
MIT License
576 stars 130 forks source link

getPwrChat and getFullInfo Methods - No Response #109

Closed KornKolio closed 2 years ago

KornKolio commented 2 years ago

Hi All,

I get no response requesting full channel info, e.g. 127.0.0.1:9503/api/getfullinfo/?id=@channelname where getinfo works as expected 127.0.0.1:9503/api/getinfo/?id=@channelname

Could that be related to Telegram limitations to address privacy issues, or this works fine for you?

I'm running the API on Docker for Windows.

Thank you!

xtrime-ru commented 2 years ago

Hi! What kind of response do you get? Also check logs: docker logs -f telegram-api-server

It can be timeout issue. Also you can try madelineProto custom method: https://docs.madelineproto.xyz/getPwrChat.html Its should work better than getfullinfo.

KornKolio commented 2 years ago

Thank you, Alex. I got it sorted out by deleting all previous sessions and restarting the docker container. Turned out the phone I was using got banned during the active session and probably that caused the malfunction.

Thank you also for the great API server. Much appreciate your work.

KornKolio commented 2 years ago

Using getPwrChat method I cannot see the "participants" for channels which the API user is not admin at, but that has to be by design, is it?

xtrime-ru commented 2 years ago

I got it sorted out by deleting all previous sessions and restarting the docker container.

Glad to hear, you resolve the issue.

I cannot see the "participants" for channels which the API user is not admin at

Yes, most of admins forbid to fetch participants from small channels. And if channel is big, then only admins can fetch participants. If you can see participants in desctop or mobile telegram app, then you can fetch them in TAS/MadelineProto

xtrime-ru commented 2 years ago

getinfo works as expected

I just realised, than getInfo is heavily cached. So it just returns cached result without actual request to telegram servers. This is why it works...