public static async void TestTelegram() { var bot = new TelegramBot("511987996:AAFlFjHD1oSAjcS_WgXoWc2GtWyCp-kG5KU"); await bot.Send("@aclifford", "This is a test message from HAT_BOT"); return; }
private void Start() { if (_threadRunning) { return; } TelegramBot.Send("=== bot started ==="); _threadRunning = true; _thread = new Thread(new ThreadStart(Process)); _thread.Start(); }