Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make BASE_BOT_URL customizable #1017

Merged
merged 3 commits into from
Nov 6, 2022
Merged

Conversation

ariaieboy
Copy link
Contributor

this PR will close the #941 and #942
as you know telegram offers a local bot API server and in some cases like censorship we can use a proxy to send our requests to telegram for example using this repo https://github.com/manzoorwanijk/telegram-bot-api-worker we can create a Cloudflare worker to send requests to the telegram sever in restricted internet and all these situations need custom BASE_BOT_URL.

I've added a fourth parameter to the API Class that accepts BASE_BOT_URL and for laravel users, I've added a config option called base_bot_url so that users can set their custom bot base URL.
function setBaseBotUrl(string $baseBotUrl) was also added to the API class.

@irazasyed irazasyed merged commit 79936f1 into irazasyed:develop Nov 6, 2022
@ariaieboy ariaieboy deleted the base_api_url branch November 13, 2022 07:10
@ariaieboy ariaieboy restored the base_api_url branch November 13, 2022 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants