/
anton.bessolitsyn
/
easyMessageHandlerBot
Обзор
Документация
Войти
/
anton.bessolitsyn
/
easyMessageHandlerBot
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
Program.cs
35 строк
1 KB
Anton Bessolitsyn
refactoring
04 апр 2026, 09:37
04 апр 2026, 09:37
1ea1956
Код
Авторство
О чём код?
// https://core.telegram.org/bots/tutorial //Done! Congratulations on your new bot.You will find it at t.me/EasyMessageHandler_Bot. //You can now add a description, about section and profile picture for your bot, see /help for a list of commands. //By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. //Just make sure the bot is fully operational before you do this. //Use this token to access the HTTP API: //7873742239:AAEF_rD3FF5MzrEkj6WKQcIV1ZQfSRsyxJI //Keep your token secure and store it safely, it can be used by anyone to control your bot. //For a description of the Bot API, see this page: https://core.telegram.org/bots/api using easyMessageHandlerBot; using System.IO; using System.IO.Pipes; using Telegram.Bot; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; using Telegram.Bot.Types.ReplyMarkups; //// Store bot screaming status //var screaming = false; //var bot = new TelegramBotClient("7873742239:AAEF_rD3FF5MzrEkj6WKQcIV1ZQfSRsyxJI"); //using var cts = new CancellationTokenSource(); //// Tell the user the bot is online //Console.WriteLine("Start listening for updates. Press enter to stop"); //Console.ReadLine(); //// Send cancellation request to stop the bot //cts.Cancel();