mirror of
https://github.com/ahabhyde/miguelbridge
synced 2025-01-25 05:24:19 +01:00
Fix null come cognome
This commit is contained in:
parent
53e3cce3d9
commit
384a51342d
@ -70,9 +70,15 @@ public class TGBot extends TelegramLongPollingBot {
|
||||
|
||||
else if (update.hasMessage() && update.getMessage().hasPhoto()) {
|
||||
String chat_id = "" + update.getMessage().getChatId();
|
||||
String sender = update.getMessage().getFrom().getFirstName() + " "
|
||||
+ update.getMessage().getFrom().getLastName();
|
||||
String sender;
|
||||
String destination;
|
||||
|
||||
if (update.getMessage().getFrom().getLastName() != null)
|
||||
sender = update.getMessage().getFrom().getFirstName() + " "
|
||||
+ update.getMessage().getFrom().getLastName();
|
||||
else
|
||||
sender = update.getMessage().getFrom().getFirstName();
|
||||
|
||||
java.io.File downloadedFile = null;
|
||||
|
||||
//TODO Scarica la foto
|
||||
|
Loading…
Reference in New Issue
Block a user