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

feat: add telegram proxy support #1764

Merged
merged 2 commits into from
May 29, 2023
Merged

Conversation

athurg
Copy link
Contributor

@athurg athurg commented May 29, 2023

This PR just close #1763 .

With this PR, we can config a Telegram Robot Token like http..../bot<token> to use a reverse proxy API for Telegram. Some config example like below:

  • http://telegram.myhost.com/bot<token>
  • https://telegram.myhost.com/bot<token>

The config Must satisfied with two rules:

  • Start with http, both http://... or https://... are OK.
  • End with /bot<token>, because we need to guest the File Download URL by replace /bot<token> into /file/bot<token>.

After this PR has been merged, I'll update the document in dotcom

@athurg athurg requested a review from boojack as a code owner May 29, 2023 01:36
@github-actions
Copy link

github-actions bot commented May 29, 2023

Uffizzi Preview deployment-26858 was deleted.

@boojack boojack changed the title Add telegram proxy support feat: add telegram proxy support May 29, 2023
@boojack boojack merged commit ce64894 into usememos:main May 29, 2023
@athurg athurg deleted the telegram_proxy branch May 29, 2023 05:34
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.

如何使用反代地址来访问telegrambot
2 participants