コード例 #1
0
 public MessageAttribute(InChat inChat, string text, MessageFlag messageFlags = MessageFlag.HasText, bool regex = false)
     : this()
 {
     isRegex      = regex;
     InChat       = inChat;
     Text         = text;
     MessageFlags = messageFlags;
 }
コード例 #2
0
 public CallbackQueryAttribute(InChat inChat)
 {
     _inChat    = inChat;
     requreChat = true;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <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;
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
 public UpdateAttribute(InChat inChat, UpdateFlag updateFlags)
 {
     InChat      = inChat;
     UpdateFlags = updateFlags;
 }
コード例 #8
0
 /// <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;
 }
コード例 #9
0
 public TextMessage(string text)
 {
     _text   = text;
     _inChat = InChat.All;
 }
コード例 #10
0
 public TextMessage(InChat inChat)
 {
     _text   = "";
     _inChat = inChat;
 }
コード例 #11
0
 public TextMessage(InChat inChat, string text)
 {
     _inChat = inChat;
     _text   = text;
 }
コード例 #12
0
 public ParametrizedCommand(InChat type, string Text, CommandParseMode parseMode) : base(type, Text, parseMode)
 {
 }
コード例 #13
0
 public ParametrizedCommand(InChat type, string Text)
     : base(type, Text)
 {
 }
コード例 #14
0
 public MessageAttribute(MessageType messageType, InChat chat)
 {
     MessageType = messageType;
     Chat        = chat;
 }
コード例 #15
0
 public TextMessage(InChat inChat, string text, bool regexp)
 {
     _inChat = inChat;
     _text   = text;
     _regexp = regexp;
 }
コード例 #16
0
 public MessageAttribute(InChat inChat, MessageFlag messageFlags)
     : this()
 {
     InChat       = inChat;
     MessageFlags = messageFlags;
 }
コード例 #17
0
 public TextMessage(string text, bool regexp)
 {
     _text   = text;
     _inChat = InChat.All;
     _regexp = regexp;
 }
コード例 #18
0
 /// <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;
 }
コード例 #19
0
 public UpdateAttribute()
 {
     InChat      = InChat.All;
     UpdateFlags = UpdateFlag.All;
 }