Example #1
0
 public Form1()
 {
     InitializeComponent();
     Telegram.bot  bot  = new Telegram.bot();
     Telegram.JSON json = new Telegram.JSON();
     bot.token = "385203321:AAHtRnTNPkndAkj9ikgF7d3vBw0HQSbmapU";
     //bot.token = "446997055:AAGFfl8jrSkF5gB17zbiKlh78wsBfmvxCUw";
     CheckForIllegalCrossThreadCalls = false;
     backgroundWorker1.RunWorkerAsync();
     bot.update = "true";
 }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Telegram.bot bot = new Telegram.bot();
            bot.token  = "477046326:AAEdQeL1TZw_sUg4QUZOmwz8pVrEnoj-xqE";
            bot.update = "true";
            CheckForIllegalCrossThreadCalls = false;
            backgroundWorker1.RunWorkerAsync();
            ThreadStart ts  = new ThreadStart(QWE);
            Thread      TRD = new Thread(ts);

            TRD.Start();
            ThreadStart ts1  = new ThreadStart(ALI);
            Thread      TRD1 = new Thread(ts1);

            TRD1.Start();
        }