Package: tgback
TelegramBackup v5.1Don't forget to look atchangelog!TelegramBackup— console application created to backup Telegram accounts. Due to the features of Telegram you will benot ableto log into your account if you lose access to the phone number (SIM card).TGBACKprovides the ability to create analternative session(as if you were logging in from another device) and get login code or change the number on which the account is linked.TelegramBackupproduces a special.tgbackfile as well as a QR code - both are your backup. You can choose what is more convenient for you to store, as.tgbackand a QR code representthe samesession. For encryption of backups,AES-256-CBCis used with ascryptkey.Download & InstallWindowsYou can download builds from theReleasesor from officialTGBACK Channel.Linux and making Windows executableIf you want to make aTelegramBackupapp then you need to install all dependencies. For the program to work correctly, you need to havePython 3.7+,ZBar(for QR features, you may ignore it) andpip(it can be already installed with Python 3.7+, typepiporpip3in your terminal/cmd). After that, run:# You can install TGBACK from PIPpipinstalltgback[QR]# Not a Pure-python, with QR# pip install tgback # Pure-python, no QR support# Or install from GitHub with GIT by cloning repositorygitclonehttps://github.com/NotStatilko/tgback
pipinstall./tgback[QR]# Not a Pure-python, with QR# pip install ./tgback # Pure-python, no QR supporttgback# Run installed TGBACK appIf you want to make executable on Linux or Windows then installpyinstallerpip install pyinstallerGo totgback/pyinstaller(you should clone repo from GitHub) folder and runpyinstaller TelegramBackup.specAfter making TelegramBackup executable check it if it works and after that you can remove all tgback-related stuff (ZBar [if you not on linux], Python, etc).LinuxIf you want to use tgback on Linux with QR-features then you will need to have alibzbar0(or analogue) onto your machine.# Debian OS / Ubuntu OS
sudo apt install libzbar0Backup creationTo create a backup you need to selectfirst modeAnd choose the way you will create it.You can enter everything manually, or create a specialtgback-configfile. If the first method is inconvenient for you, create a text file and fill it out using this template:phone_number; telegram_password; backup_password; backup_filenameNext, you will need to enter the code that Telegram will send you. If this doesn't happen, then you can request the code again. After three attempts, Telegram willcall youand the robot will dictate it.After all operations, you will receive a QR code and.tgbackfile. Pleasecheck your backupsfor validity for first.Backup refresh and number replacementDue to discoveredproblembackups need to be updated periodically, so that the session doesn't turn off automatically due to inactivity. At the moment once every three months. We can probably increase it to five, but testing is needed.TelegramBackupautomatically creates a reminder message, so you will be notified a week before the deadline. You can refresh the backup and change the number in the mode under number2. After refreshing the backup, you will receive a new updated QR code and.tgbackfile. Old backups will remain working, but they will be show the wrong amount of time before the expiration.A bit about securityThe backups you createdshouldn'tbe active since the last update. If you notice something suspicious –immediatelydisconnect (via Destroy option or Telegram) your backup session. After disconnecting a session,ALLbackups that are attached to itwill be inacessible.TelegramBackup backups storesession, upon receipt of which the attacker will receiveFULLcontrol over your account. Use complex passwords.Also, no security audits have been conducted by competent people, so Ido not guaranteecomplete cryptographic strength. If you have any suggestions, open issue. I am attaching a QR-backup of my account here, try to hack it if you want!Involved librariesTelethon(MIT License)Pillow(PIL Software License)PyAES(MIT License)PyZBar(MIT License)python-qrcode(LICENSE)