File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
16
16
### Fixed
17
17
- ` getUpdates ` method wrongly sends only 1 Update when a limit of 0 is passed.
18
18
- ` Telegram::runCommands() ` now passes the correct message text to the commands.
19
+ - Request limiter accepts chat ID as integer and string.
19
20
### Security
20
21
21
22
## [ 0.70.1] - 2020-12-25
Original file line number Diff line number Diff line change @@ -1259,13 +1259,13 @@ public static function selectChats($select_chats_params)
1259
1259
/**
1260
1260
* Get Telegram API request count for current chat / message
1261
1261
*
1262
- * @param int|null $chat_id
1263
- * @param string|null $inline_message_id
1262
+ * @param int|string| null $chat_id
1263
+ * @param string|null $inline_message_id
1264
1264
*
1265
1265
* @return array|bool Array containing TOTAL and CURRENT fields or false on invalid arguments
1266
1266
* @throws TelegramException
1267
1267
*/
1268
- public static function getTelegramRequestCount (int $ chat_id = null , string $ inline_message_id = null )
1268
+ public static function getTelegramRequestCount ($ chat_id = null , string $ inline_message_id = null )
1269
1269
{
1270
1270
if (!self ::isDbConnected ()) {
1271
1271
return false ;
You can’t perform that action at this time.
0 commit comments