| Total Complexity | 1 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.github.netkorp.telegram.framework.commands.basic; |
||
| 12 | @TelegramCommand(name = "whoami", group = "commands.groups.whoami", secure = false) |
||
| 13 | @Conditional(ExcludeCondition.class) |
||
| 14 | public final class WhoAmICommand extends AbstractSimpleCommand { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Processes the data sent by the users. |
||
| 18 | * |
||
| 19 | * @param update the received message. |
||
| 20 | * @param args the parameters passed to the command execution. |
||
| 21 | */ |
||
| 22 | @Override |
||
| 23 | public void execute(Update update, String[] args) { |
||
| 24 | Long idChat = update.getMessage().getChatId(); |
||
| 25 | bot.sendMessage(idChat.toString(), idChat); |
||
| 26 | } |
||
| 28 |