Skip to content

Commit a9da0ae

Browse files
committed
+ custom api base url
1 parent 200b049 commit a9da0ae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Deployf.Botf/BotfBot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class BotfBot : BotBase
77
{
88
public readonly BotfOptions Options;
99

10-
public BotfBot(BotfOptions options) : base(options.Username, new TelegramBotClient(options.Token!))
10+
public BotfBot(BotfOptions options) : base(options.Username, new TelegramBotClient(options.Token!, baseUrl: options.ApiBaseUrl))
1111
{
1212
Options = options;
1313
}

Deployf.Botf/BotfOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public string? Username
1818
public string? WebhookUrl { get; set; }
1919
public bool AutoSend { get; set; }
2020
public bool HandleOnlyMentionedInGroups { get; set; }
21+
public string ApiBaseUrl { get; set; }
2122

2223
public bool UseWebhooks => !string.IsNullOrEmpty(WebhookUrl);
2324
public string? WebhookPath

0 commit comments

Comments
 (0)