Using a Telegram bot sample on Windows 7 generates a ‘Conflict: terminated by other getUpdates’ issue. How can this be fixed?
public static async Task RunBotExample()
{
NetworkConfigurator.EnableTls(SecurityProtocolType.Tls12);
var client = new BotService(Config.BotKey);
var botInfo = await client.FetchInfoAsync();
Console.Title = botInfo.Name;
var cancelSource = new CancellationTokenSource();
client.BeginReceive(new CustomUpdateHandler(ProcessNewUpdateAsync, LogBotErrorAsync), cancelSource.Token);
Console.WriteLine($"Listening for @{botInfo.Name}");
Console.ReadLine();
cancelSource.Cancel();
}