Skip to content

change $api_base_uri in order to use Request class with my own server url(tdlib) #1295

Closed
@arashnz

Description

@arashnz

🐞 Bug Report

When I use
\Longman\TelegramBot\Request::setCustomBotApiUri(
$api_base_uri = 'http://myownserver:8081', // Default: https://api.telegram.org
);
and then use \Longman\TelegramBot\Request::sendAudio it still use https://api.telegram.org as base api url.
but when I change 'private static $api_base_uri = 'http://myownserver:8081';' in request.php manually it works!

Required Information

| Operating system | Centos 8
| PHP Telegram Bot version | latest
| PHP version | 7.4
| MySQL version | none
| Update Method | Webhook
| Self-signed certificate | not sure/use it on my own server

Expected behaviour

When using \Longman\TelegramBot\Request::setCustomBotApiUri(
$api_base_uri = 'http://myownserver:8081', // Default: https://api.telegram.org
);
for all of the usage of Request:: in that page it should use http://myownserver:8081 as base api telegram url.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions