Package com.jtelegram.api.commands
Class Command
- java.lang.Object
-
- com.jtelegram.api.commands.Command
-
public class Command extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Command(java.lang.String baseCommand, boolean mentioned, java.util.List<java.lang.String> args, TextMessage baseMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getArgs()
java.lang.String
getArgsAsText()
java.lang.String
getBaseCommand()
TextMessage
getBaseMessage()
Chat
getChat()
User
getSender()
boolean
isMentioned()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Command
protected Command(java.lang.String baseCommand, boolean mentioned, java.util.List<java.lang.String> args, TextMessage baseMessage)
-
-
Method Detail
-
getArgsAsText
public java.lang.String getArgsAsText()
-
getChat
public Chat getChat()
-
getSender
public User getSender()
-
getBaseCommand
public java.lang.String getBaseCommand()
-
isMentioned
public boolean isMentioned()
-
getArgs
public java.util.List<java.lang.String> getArgs()
-
getBaseMessage
public TextMessage getBaseMessage()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-