TelegramBot / Api

Native PHP Wrapper for Telegram BOT API
MIT License
1.06k stars 321 forks source link

Bad Request 400 (without any error's description) #389

Open Shellai opened 1 year ago

Shellai commented 1 year ago

Hello! I have an error, when executing these API-functions one after another: getChat, getMe, getChatMember. The third function gives me an error 404 (Bad Request) without any description. But I have tested these functions separately and it works. For example, I have used only getChatMember and error won't appear. Can you help me? Is it limit for 3 methods on Telegram?

Shellai commented 1 year ago

TelegramBot\Api\HttpException Object ( [message:protected] => Bad Request [string:Exception:private] => [code:protected] => 400 [file:protected] => /www/site/vendor/telegram-bot/api/src/BotApi.php [line:protected] => 288 )

Shellai commented 1 year ago

UPD! I have just tested methods with directly calling CURL to Telegram and it works fine. So, the problem appears when use library.