Skip to content

Commit 6d4bb80

Browse files
committed
Fixed downloadFile
1 parent eee1497 commit 6d4bb80

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/tools/Receiving.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ public function __construct( GreenApiClient $greenApi ) {
2222
* files using LastOutgoingMessages method.Files storage period and, accordingly, the capability to download
2323
* them is limited to 24 hours.
2424
*
25+
* @param string $chatId
2526
* @param string $idMessage
2627
*
2728
* @return stdClass
2829
*/
29-
public function downloadFile( string $idMessage ): stdClass {
30+
public function downloadFile( string $chatId, string $idMessage ): stdClass {
3031

3132
$requestBody = [
33+
'chatId' => $chatId,
3234
'idMessage' => $idMessage,
3335
];
3436

0 commit comments

Comments
 (0)