kibersportovich / telegram-chatlogger

telegram-chatlogger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegram-chatlogger

with this tool you can log incoming messages and media messages from telegram chats. And also you can create backup of selected chat.


Requirements


Installation

apt update && apt install git
git clone https://github.com/kibersportovich/telegram-chatlogger
cd telegram-chatlogger
pip3 install -r requirements.txt

Start

python3 -m chatlogger

Usage

use the commands in telegram.

For example:

.chats
.get_backup

In addition:

  • 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"

Commands

.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

logger-chat

a chat that receives media messages from logged chats

About

telegram-chatlogger

License:GNU General Public License v3.0


Languages

Language:Python 100.0%