public MessageAttribute(InChat inChat, string text, MessageFlag messageFlags = MessageFlag.HasText, bool regex = false) : this() { isRegex = regex; InChat = inChat; Text = text; MessageFlags = messageFlags; }
public CallbackQueryAttribute(InChat inChat) { _inChat = inChat; requreChat = true; }
/// <summary> /// Marks method as handler for command without parameters /// </summary> /// <param name="type">>Which chat type for handle <see cref="InChat" /></param> /// <param name="Text">Command name</param> /// <param name="parseMode">Command parse mode <see cref="CommandParseMode" /></param> public Command(InChat type, string Text, CommandParseMode parseMode) { _type = type; text = Text; mode = parseMode; }
/// <summary> /// Marks method as handler for command without parameters /// </summary> /// <param name="Text">Command name</param> /// <param name="parseMode">Command parse mode <see cref="CommandParseMode" /></param> public Command(string Text, CommandParseMode parseMode) { text = Text; _type = InChat.All; mode = parseMode; }
/// <summary> /// Marks method as handler for command without parameters /// </summary> /// <param name="Text">Command name</param> public Command(string Text) { text = Text; _type = InChat.All; mode = CommandParseMode.WithUsername; }
/// <summary> /// Marks method as handler for command without parameters /// </summary> /// <param name="type">Which chat type for handle <see cref="InChat" /></param> /// <param name="Text">Command name</param> public Command(InChat type, string Text) { _type = type; text = Text; mode = CommandParseMode.WithUsername; }
public UpdateAttribute(InChat inChat, UpdateFlag updateFlags) { InChat = inChat; UpdateFlags = updateFlags; }
/// <summary> /// Marks method as handler for command without parameters /// </summary> /// <param name="inChat">Which chat type for handle <see cref="InChat" /></param> /// <param name="text">Command name</param> public CommandAttribute(InChat inChat, string text) : this() { InChat = inChat; Text = text; _mode = CommandParseMode.WithUsername; }
public TextMessage(string text) { _text = text; _inChat = InChat.All; }
public TextMessage(InChat inChat) { _text = ""; _inChat = inChat; }
public TextMessage(InChat inChat, string text) { _inChat = inChat; _text = text; }
public ParametrizedCommand(InChat type, string Text, CommandParseMode parseMode) : base(type, Text, parseMode) { }
public ParametrizedCommand(InChat type, string Text) : base(type, Text) { }
public MessageAttribute(MessageType messageType, InChat chat) { MessageType = messageType; Chat = chat; }
public TextMessage(InChat inChat, string text, bool regexp) { _inChat = inChat; _text = text; _regexp = regexp; }
public MessageAttribute(InChat inChat, MessageFlag messageFlags) : this() { InChat = inChat; MessageFlags = messageFlags; }
public TextMessage(string text, bool regexp) { _text = text; _inChat = InChat.All; _regexp = regexp; }
/// <summary> /// Marks method as handler for command without parameters /// </summary> /// <param name="inChat">>Which chat type for handle <see cref="InChat" /></param> /// <param name="text">Command name</param> /// <param name="parseMode">Command parse mode <see cref="CommandParseMode" /></param> public CommandAttribute(InChat inChat, string text, CommandParseMode parseMode) : this() { InChat = inChat; Text = text; _mode = parseMode; }
public UpdateAttribute() { InChat = InChat.All; UpdateFlags = UpdateFlag.All; }