with this tool you can log incoming messages and media messages from telegram chats. And also you can create backup of selected chat.
- api id and hash
- Python 3.6+
apt update && apt install git
git clone https://github.com/kibersportovich/telegram-chatlogger
cd telegram-chatlogger
pip3 install -r requirements.txtpython3 -m chatloggeruse the commands in telegram.
For example:
-
If you want to connect new Telegram account, you just need to remove the chatlogger.session file from the directory
-
With some commands (.log | .logmedia | .fast_backup) feedback messages are sent to "Saved Messages"
.logmedia - Log media messages in this chat (does not log stickers and gifs)
they will be signed and sent to the logger-chat
.log - log messages in this chat; messages will be logged in a txt document, it can be retrieved with .get_backup
.get_backup "chat_id" - get txt document with logged messages
.del "chat_id" - disable message logging in chat
.del_media "chat_id" - disable media message logging in chat
.chats - to see the logged chats
.fast_backup - Create a backup of all chat messages
.set_logger - makes this chat a logger-chat
.off_media - on/off media message logging
.set_tz "tz_identifier" - If the time of the logged messages is not displayed correctly, you can change tz;
tz identifier can be taken from here
a chat that receives media messages from logged chats


