TelegramBots icon indicating copy to clipboard operation
TelegramBots copied to clipboard

somthings wrong when i sendPhoto

Open xia0ne opened this issue 5 months ago • 4 comments

SendPhoto  sendPhoto = new SendPhoto();
sendPhoto.setChatId(chatId);
sendPhoto.setReplyToMessageId(replyToMessageId);
sendPhoto.setPhoto(new InputFile(url));
sendPhoto.setCaption(caption);
this.execute(sendPhoto);

caption & url is a String, when it execute, it told me that " Cannot invoke "org.telegram.telegrambots.bots.DefaultBotOptions.getHttpContext()" because "this.options" is null" what can i do! :(((((((((

xia0ne avatar Sep 01 '24 11:09 xia0ne