Skip to content

Commit

Permalink
#1295 Make sure setCustomBotApiUri has an effect if Telegram object w…
Browse files Browse the repository at this point in the history
…as already instantiated.
  • Loading branch information
TiiFuchs committed Mar 18, 2022
1 parent 3cf50e7 commit 54bc8a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ public static function setCustomBotApiUri(string $api_base_uri, string $api_base
if ($api_base_download_uri !== '') {
self::$api_base_download_uri = $api_base_download_uri;
}

if (self::$telegram) {
self::initialize(self::$telegram);
}
}

/**
Expand Down

0 comments on commit 54bc8a3

Please sign in to comment.