Exemplo n.º 1
0
        public async Task Info(IMessage msg, string cmd, IBot bot)
        {
            var group = cmd.Contains("-g");

            cmd = cmd.Replace("-g", "").Trim();

            if (group)
            {
                var g = await bot.GetGroup(msg.Group.Id);

                await msg.Reply($"Group: {g.Name} ({g.Id})");

                return;
            }

            var info = await bot.GetUser(msg.User.Id);

            await msg.Reply($"User: {info.Nickname} ({info.Id})");
        }