antiantiswearingbot/Jetsparrow.Aasb/Commands/IdCommand.cs
2023-03-26 22:40:44 +03:00

12 lines
305 B
C#

namespace Jetsparrow.Aasb.Commands;
public class IdCommand : IChatCommand
{
public bool Authorize => true;
public string Execute(CommandContext cmd)
{
if (cmd.ChatId == cmd.SenderId)
return $"userid: `{cmd.SenderId}`";
return $"chatid: `{cmd.ChatId}`";
}
}