8000 add: Domain configuration for Telegram. by antonchen · Pull Request #218 · gobackup/gobackup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add: Domain configuration for Telegram. #218

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

Merged
merged 1 commit into from
Jan 22, 2024
Merged

add: Domain configuration for Telegram. #218

merged 1 commit into from
Jan 22, 2024

Conversation

antonchen
Copy link
Contributor

@@ -18,8 +18,12 @@ func NewTelegram(base *Base) *Webhook {
contentType: "application/json",
buildWebhookURL: func(url string) (string, error) {
token := base.viper.GetString("token")
domain := "api.telegram.org"
Copy link
Collaborator
@huacnlee huacnlee Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to use endpoint

endpoint = "api.telegram.org"

Ref: https://gobackup.github.io/configuration/storages/oss

And the value for endpoint, URL schema is optional, if user not set, add https:// as default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改为 endpoint, 如用户未设置 endpoint 则使用 api.telegram.org

@huacnlee huacnlee merged commit 5c1216c into gobackup:main Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0