Skip to content

Commit

Permalink
Fixing path for downloading files from the Telegram servers
Browse files Browse the repository at this point in the history
  • Loading branch information
unreal4u committed Mar 6, 2016
1 parent 4917684 commit bef0b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TgLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function performApiRequest(TelegramMethods $method): TelegramTypes
public function downloadFile(File $file): TelegramDocument
{
$this->logger->debug('Downloading file from Telegram, creating URI');
$url = $this->apiUrl . $file->file_path;
$url = 'https://api.telegram.org/file/bot' . $this->botToken . '/' . $file->file_path;
$client = new Client();
$this->logger->debug('About to perform request');
return new TelegramDocument($client->get($url));
Expand Down

0 comments on commit bef0b2c

Please sign in to comment.