1
1
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:
Ahab Hyde 2018-04-23 14:32:21 +02:00
parent 53e3cce3d9
commit 384a51342d

View File

@ -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