Class HelpMessageCommand
java.lang.Object
io.github.yvasyliev.forwarder.telegram.bot.service.command.HelpMessageCommand
- All Implemented Interfaces:
MessageCommand
Command to send a help message to the user.
This command is typically used to provide users with information on how to use the bot.
-
Constructor Summary
ConstructorsConstructorDescriptionHelpMessageCommand(SendMessageMapper sendMessageMapper, org.telegram.telegrambots.meta.generics.TelegramClient telegramClient) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.telegram.telegrambots.meta.api.objects.message.Message message) Executes the command with the provided message.
-
Constructor Details
-
HelpMessageCommand
public HelpMessageCommand(SendMessageMapper sendMessageMapper, org.telegram.telegrambots.meta.generics.TelegramClient telegramClient)
-
-
Method Details
-
execute
public void execute(org.telegram.telegrambots.meta.api.objects.message.Message message) throws org.telegram.telegrambots.meta.exceptions.TelegramApiException Description copied from interface:MessageCommandExecutes the command with the provided message.- Specified by:
executein interfaceMessageCommand- Parameters:
message- the Telegram message to process- Throws:
org.telegram.telegrambots.meta.exceptions.TelegramApiException- if an error occurs while processing the message
-