I an looking for something that seems to be simple but I can not manage it to work, could anyone provide me a example that receives a photo to a java.io file ?
Until now I have:
` public void onUpdateReceived(Update update) {
Log says file is null:
java.lang.NullPointerException
at br.com.prime33.telegram.bot.oficial.principal.Photo.classificar(Photo.java:35)
at br.com.prime33.telegram.bot.oficial.principal.Bela21Bot.onUpdateReceived(Bela21Bot.java:51)
at org.telegram.telegrambots.updatesreceivers.BotSession$HandlerThread.run(BotSession.java:180)
neither this output path works when I try in the browser
Hello,
I an looking for something that seems to be simple but I can not manage it to work, could anyone provide me a example that receives a photo to a java.io file ?
Until now I have: ` public void onUpdateReceived(Update update) {
Log says file is null: java.lang.NullPointerException at br.com.prime33.telegram.bot.oficial.principal.Photo.classificar(Photo.java:35) at br.com.prime33.telegram.bot.oficial.principal.Bela21Bot.onUpdateReceived(Bela21Bot.java:51) at org.telegram.telegrambots.updatesreceivers.BotSession$HandlerThread.run(BotSession.java:180)
neither this output path works when I try in the browser
https://api.telegram.org/246536565:AAFS1_A6sHcwYzksZLaeoqcOd-EC9dd3IYk/photo/file_13.jpg
Thanks in advance