We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
noplanman
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
2 parents c3e099e + dece5d2 commit e86aca6Copy full SHA for e86aca6
src/Request.php
@@ -410,6 +410,10 @@ public static function setClient(ClientInterface $client): void
410
*/
411
public static function setCustomBotApiUri(string $api_base_uri, string $api_base_download_uri = ''): void
412
{
413
+ if (self::$client) {
414
+ throw new TelegramException('setCustomBotApiUri() needs to be called before the Telegram object gets instantiated.');
415
+ }
416
+
417
self::$api_base_uri = $api_base_uri;
418
if ($api_base_download_uri !== '') {
419
self::$api_base_download_uri = $api_base_download_uri;
0 commit comments