use of org.telegram.telegrambots.exceptions.TelegramApiException in project telegram-notifications-plugin by jenkinsci.
the class StartCommand method execute.
@Override
public void execute(AbsSender absSender, User user, Chat chat, String[] strings) {
SendMessage answer = new SendMessage();
answer.setChatId(chat.getId().toString());
answer.setText(botStrings.get("message.help"));
try {
absSender.execute(answer);
} catch (TelegramApiException e) {
BotLogger.error(LOG_TAG, e);
}
}
Aggregations