|
@@ -111,7 +111,7 @@ discard block |
|
|
block discarded – undo |
|
111
|
111
|
public function downloadFile(File $file): TelegramDocument |
|
112
|
112
|
{ |
|
113
|
113
|
$this->logger->debug('Downloading file from Telegram, creating URL'); |
|
114
|
|
- $url = 'https://api.telegram.org/file/bot' . $this->botToken . '/' . $file->file_path; |
|
|
114
|
+ $url = 'https://api.telegram.org/file/bot'.$this->botToken.'/'.$file->file_path; |
|
115
|
115
|
$this->logger->debug('About to perform request to begin downloading file'); |
|
116
|
116
|
return new TelegramDocument($this->httpClient->get($url)); |
|
117
|
117
|
} |
|
@@ -122,7 +122,7 @@ discard block |
|
|
block discarded – undo |
|
122
|
122
|
*/ |
|
123
|
123
|
final private function constructApiUrl(): TgLog |
|
124
|
124
|
{ |
|
125
|
|
- $this->apiUrl = 'https://api.telegram.org/bot' . $this->botToken . '/'; |
|
|
125
|
+ $this->apiUrl = 'https://api.telegram.org/bot'.$this->botToken.'/'; |
|
126
|
126
|
$this->logger->debug('Built up the API URL'); |
|
127
|
127
|
return $this; |
|
128
|
128
|
} |
|
@@ -236,7 +236,7 @@ discard block |
|
|
block discarded – undo |
|
236
|
236
|
$this->methodName = substr($completeClassName, strrpos($completeClassName, '\\') + 1); |
|
237
|
237
|
$this->logger->info('About to perform API request', ['method' => $this->methodName]); |
|
238
|
238
|
|
|
239
|
|
- return $this->apiUrl . $this->methodName; |
|
|
239
|
+ return $this->apiUrl.$this->methodName; |
|
240
|
240
|
} |
|
241
|
241
|
|
|
242
|
242
|
/** |
Please login to merge, or discard this patch.