Skip to content

WizardLoop/GetAnyMessage

📨🔓 GetAnyMessage

Get Any Message Content from Any Chat Easily!

GetAnyMessage is a powerful Telegram bot that lets you retrieve restricted messages.

AGPL License Made with ❤️ Docker Ready


📦 Features

  • 🔓 Retrieve restricted messages from any chat
  • 🔁 Bypass Telegram forward/copy restrictions
  • 📁 file support up to 4GB
  • 💬 All types of messages

🛠 Installation Setup

1️⃣ Clone the repository

git clone http://github.com/WizardLoop/GetAnyMessage.git
cd GetAnyMessage

2️⃣ Install dependencies

Install PHP dependencies using Docker:

docker compose run --rm composer install

3️⃣ Launch the bot

docker compose up --pull always -d

The bot will start running in the background.

🔍 View logs

docker compose logs

Live log output of your bot.


⚙️ Common Commands

Command Description
docker compose build Build the Docker image
docker compose up --pull always -d Start the bot in the background
docker compose down Stop and remove the bot container
docker compose restart Restart the bot quickly
docker compose logs View real-time bot logs
docker compose exec bot composer dump-autoload Reload Composer autoload
docker compose ps Show the status of Docker containers

🔐 Environment Configuration

Copy .env.example to .env and fill in:

cp .env.example .env

Telegram Bot Settings:

  • API_ID - API ID
  • API_HASH - API hash
  • BOT_TOKEN - bot token
  • ADMIN - username or user ID. Multiple admins supported, comma-separated (e.g., 1234,12345)
  • BOT_NAME - bot name (default: GetAnyMessage)

Database Settings (Optional, for MySQL session storage):

  • DB_FLAG - Enable MySQL session storage (yes) or disable (no / leave empty)
  • DB_HOST - MySQL host
  • DB_PORT - MySQL port (default: 3306)
  • DB_USER - MySQL username
  • DB_PASS - MySQL password
  • DB_NAME - MySQL database name

⚠️ If DB_FLAG is no or empty, all DB_* variables are ignored and the bot will use file-based session storage.


🧪 Testing & Code Quality

This project supports PHPCS, and PHP-CS-Fixer.

🎨 Code style

docker compose exec bot vendor/bin/phpcs
docker compose exec bot vendor/bin/php-cs-fixer fix

🤝 Contributing

Pull requests are welcome!

  1. Fork the repo
  2. Create a branch: git checkout -b fix/my-fix
  3. Commit: git commit -m 'Fix something'
  4. Push: git push origin fix/my-fix
  5. Open a PR 🙌

📄 License

Licensed under the GNU AGPL-3.0 see LICENSE.

About

A Telegram Bot to receive restricted message content from any chat!

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Languages