Exemplo n.º 1
0
        GroupPresence group; // Group of classmates
        // Initial group of classmates and create bot client
        public Bot()
        {
            string workingDirectory = Environment.CurrentDirectory;
            string projectpath      = Directory.GetParent(Directory.GetParent(workingDirectory).Parent.FullName).FullName;
            string path             = projectpath + @"\token.txt";
            string token            = File.ReadAllText(path);

            TelegramBot = new TelegramBotClient(token);
            group       = new GroupPresence();
        }
Exemplo n.º 2
0
 public PresenceCommand(GroupPresence group)
 {
     this.group = group;
 }