Skip to content

Commit 54bc8a3

Browse files
committed
#1295 Make sure setCustomBotApiUri has an effect if Telegram object was already instantiated.
1 parent 3cf50e7 commit 54bc8a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Request.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,10 @@ public static function setCustomBotApiUri(string $api_base_uri, string $api_base
327327
if ($api_base_download_uri !== '') {
328328
self::$api_base_download_uri = $api_base_download_uri;
329329
}
330+
331+
if (self::$telegram) {
332+
self::initialize(self::$telegram);
333+
}
330334
}
331335

332336
/**

0 commit comments

Comments
 (0)