Skip to content

A Telegram bot that notifies about deleted and edited messages in the owner's private chats.

Notifications You must be signed in to change notification settings

Pfauberg/all-seeing-Telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

all-seeing Telegram bot

The all-seeing Telegram bot operates in business mode, making it a powerful tool for Telegram Premium users. It allows the retrieval of the content of messages that other users have edited or deleted in private chats with the bot's owner. The bot retrieves the original content from its database and notifies the owner. Additionally, it identifies new users who message the owner and sends their Telegram ID.


🌟 Features

  • Track Edited Messages
  • Track Deleted Messages
  • Detect New Users
  • Multilingual Support

⚙️ Setup Instructions

🛠️ Step 1: Create a Telegram Bot and Enable Business Mode

  1. Open Telegram and start a chat with @BotFather:

    • Send /start and /newbot.
      • Enter the bot's name.
      • Set a unique username.
    • Copy the token provided by @BotFather.
  2. Enable business mode:

    • Send /mybots to @BotFather and select your bot.
    • Go to Bot SettingsBusiness ModeTurn on.
  3. Add the bot to Telegram Business:

    • Navigate to Telegram SettingsTelegram BusinessChatbots.
    • Enter the bot's username.

🔍 Step 2: Get Your Telegram User ID

  1. Start a chat with @pfauberg_bot.
  2. Send /start to the bot.
  3. The bot will respond with your Telegram user ID. Copy this ID.

🔧 Step 3: Configure the Bot

  1. Rename the config_example.ini file to config.ini in the root directory.
  2. Replace the placeholder values with your own:
token - Your Bot Token here

user_id - Your Telegram User ID here

name - Your timezone here

language - Your language here

Timezone Configuration

  1. Find your timezone here.
  2. Use the format Region/City (e.g., Europe/London) in your config.ini file.

🚀 Step 4: Install and Run

  1. Clone the repository to your local machine:
git clone https://github.com/Pfauberg/all-seeing-Telegram-bot
  1. Navigate to the project directory:
cd all-seeing-Telegram-bot
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the bot:
python main.py

🌐 Language Support

To add a new language:

  1. Use an existing file in the languages/ directory (e.g., en.py or ru.py) as a template or create your own file.
  2. Update the language parameter in config.ini (e.g., `language = "en").

📩 Examples of Bot Notifications

New User Alert

👤 [JOHN]
ID: 123123123

Edited Message Notification

✏️ [JOHN] 123123123
Message from 24/12/24 22:03

Changed from:
"QWERTY"

To:
"123456"

Deleted Message Notification

🗑️ [JOHN] 123123123
Message from 24/12/24 22:03

Deleted:
"123456"

About

A Telegram bot that notifies about deleted and edited messages in the owner's private chats.

Topics

Resources

Stars

Watchers

Forks

Languages