Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit bef0b2c

Browse files
committed
Fixing path for downloading files from the Telegram servers
1 parent 4917684 commit bef0b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TgLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function performApiRequest(TelegramMethods $method): TelegramTypes
9696
public function downloadFile(File $file): TelegramDocument
9797
{
9898
$this->logger->debug('Downloading file from Telegram, creating URI');
99-
$url = $this->apiUrl . $file->file_path;
99+
$url = 'https://api.telegram.org/file/bot' . $this->botToken . '/' . $file->file_path;
100100
$client = new Client();
101101
$this->logger->debug('About to perform request');
102102
return new TelegramDocument($client->get($url));

0 commit comments

Comments
 (0)