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(); }
public PresenceCommand(GroupPresence group) { this.group = group; }