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

添加自建tg Api配置 #472

Merged
merged 2 commits into from
Mar 7, 2023
Merged

Conversation

JustTestCode
Copy link
Contributor

添加自建tg Api配置

【内容】:
添加自建tg Api配置

添加自建tg Api配置
var botApiUrl = TelegramBotApiUrl;
if (!string.IsNullOrWhiteSpace(apiHost))
{
botApiUrl = apiHost
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
botApiUrl = apiHost
botApiUrl = apiHost;

@RayWangQvQ
Copy link
Owner

编译报错了
image

@RayWangQvQ
Copy link
Owner

BTW,还有appsettings.json里没有把apihost这个配置加上去

fix
@RayWangQvQ
Copy link
Owner

RayWangQvQ commented Mar 5, 2023

这样配置反代,除了host,还需要把"/bot"带上,是吧?

因为以前的url是https://api.telegram.org/bot,不是https://api.telegram.org

@RayWangQvQ RayWangQvQ self-requested a review March 7, 2023 14:18
@RayWangQvQ RayWangQvQ merged commit b02c1c9 into RayWangQvQ:develop Mar 7, 2023
@RayWangQvQ
Copy link
Owner

剩下的我来改吧

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