mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix: remove another bunch of obsolete method calls
This commit is contained in:
@@ -29,12 +29,12 @@ namespace Kruzya.TelegramBot.Core
|
||||
|
||||
public async Task StartAsync(CancellationToken token)
|
||||
{
|
||||
await _client.SetWebhookAsync(_config.Webhook.Url, secretToken: _secretToken, cancellationToken: token);
|
||||
await _client.SetWebhook(_config.Webhook.Url, secretToken: _secretToken, cancellationToken: token);
|
||||
}
|
||||
|
||||
public async Task StopAsync(CancellationToken token)
|
||||
{
|
||||
await _client.DeleteWebhookAsync(cancellationToken: token);
|
||||
await _client.DeleteWebhook(cancellationToken: token);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user