You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request limiter currently only works for requests that pass the chat id as integer values.
This needs to be cleaned up, to allow both integer and string (for @channels and @groups).
telegram_bot.ERROR: Argument 1 passed to Longman\TelegramBot\DB::getTelegramRequestCount() must be of the type int or null, string given, called in /vendor/longman/telegram-bot/src/Request.php on line 877 [] []
@Sergey-Shabanov Off-topic, but you can do that by pasting a direct link to a line of code. GitHub then automatically makes it "pretty" 😃
The link i posted in the issue here, is this: https://github.com/php-telegram-bot/core/blob/2093cffa2a8e0497d12183178e17cadcc1d0f6d5/src/Request.php#L877
🐞 Bug Report
Summary
Request limiter currently only works for requests that pass the chat id as integer values.
This needs to be cleaned up, to allow both integer and string (for
@channels
and@groups
).Reported here:
https://t.me/PHP_Telegram_Bot_Support/27539
Current behaviour
Error message:
core/src/Request.php
Line 877 in 2093cff
How to reproduce
Send a request with
$data['chat_id'] = '@channel';
for example.Expected behaviour
It should work with both integer and string chat ID values.
The text was updated successfully, but these errors were encountered: