1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2025-07-11 16:56:25 +00:00

Committing current state.

This commit is contained in:
2017-11-24 11:29:26 +01:00
parent f250f40e5e
commit ae95481e54
3 changed files with 11 additions and 5 deletions

View File

@ -137,7 +137,7 @@ class TelegramUpdateHandler implements UpdateCallback {
private void processUpdate(TLAbsUpdate update, TelegramClient client) {
if (update instanceof TLUpdateNewMessage) {
TLAbsMessage abs_msg = ((TLUpdateNewMessage)update).getMessage();
Message msg = new Message(abs_msg);
Message msg = Message.fromObject(abs_msg);
msg.save();
System.out.print('.');
AbstractMediaFileManager fm = FileManagerFactory.getFileManager(msg);