Exemple #1
0
 public UserWindow(string name, TeleBot bot)
 {
     this.bot = bot;
     InitializeComponent();
     //string smth = ConfigurationSettings.AppSettings.Get("TeleBotClientKey");
     //client = new TelegramBotClient("848578183:AAEyE9rbGZtyq4eunSdruS91Jj-gHn2F9Oc");
     labletxt.Content = name;
 }
 public MainWindow()
 {
     if (!CheckExistDataBase(path))
     {
         CreateDataBase(path);
     }
     client = new TeleBot("848578183:AAEyE9rbGZtyq4eunSdruS91Jj-gHn2F9Oc");
     InitializeComponent();
 }
Exemple #3
0
 public UsersWindow(TeleBot client)
 {
     this.client = client;
     InitializeComponent();
     foreach (var item in coll)
     {
         lsbox.Items.Add(item.user_id);
     }
 }
Exemple #4
0
        public MainWindow()
        {
            if (!CheckExistDataBase(path))
            {
                CreateDataBase(path);
            }

            client = new TeleBot("848578183:AAEyE9rbGZtyq4eunSdruS91Jj-gHn2F9Oc");
            InitializeComponent();
            btnsend_Doc.IsEnabled   = false;
            btnsend_TXT.IsEnabled   = false;
            btnsend_Video.IsEnabled = false;
            btnsend_PHOTO.IsEnabled = false;
            btnsend_Music.IsEnabled = false;
            btnsend_Mass.IsEnabled  = false;
            btnsend_Next.IsEnabled  = false;
        }