Api icon indicating copy to clipboard operation
Api copied to clipboard

Bad Request 400 (without any error's description)

Open Shellai opened this issue 3 years ago • 2 comments

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 avatar Jan 22 '23 19:01 Shellai

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 avatar Jan 22 '23 19:01 Shellai

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

Shellai avatar Jan 22 '23 20:01 Shellai