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

Strings and urls should be urldecoded before passing to api #19

Closed Exlord closed 4 years ago

Exlord commented 4 years ago

Strings(caption, message) and urls(file upload url) in GET params should be urldecoded before passing to the madelineproto api, the appi call faild with urlencoded values

xtrime-ru commented 4 years ago

Thanks, will try to fix today.

If you can provide me sample url for tests it would be great.

xtrime-ru commented 4 years ago

Can't reproduce your issue. I made test method, witch outputs everything it gets:

Снимок экрана 2020-01-15 в 00 53 16

And this is how i test it:

Снимок экрана 2020-01-15 в 00 51 32

All decoded properly.

Please send example requests.

Exlord commented 4 years ago

I was using http_build_query, but It could have been a problem on my side! not sure ...

Considering the length limit of get queries I moved to use POST params.