public class CommandMessageReceivedEvent extends TextMessageReceivedEvent
Event.Handler, Event.Priority| Constructor and Description |
|---|
CommandMessageReceivedEvent(Message message) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getArgs()
Gets the arguments for the received command
|
String |
getArgsString()
Gets a string of all of the arguments as they were entered into the telegram client
|
String |
getCommand()
Gets the command that was received that fired this Event
|
boolean |
isBotMentioned()
Gets whether the bot was mentioned in this command, or whether it was just the command that was sent.
|
getContentgetChat, getMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelledpublic CommandMessageReceivedEvent(Message message)
public String[] getArgs()
public String getArgsString()
public String getCommand()
public boolean isBotMentioned()
Copyright © 2017. All rights reserved.