WizardLoop / GetAnyMessage

A Telegram Bot to receive messages from restricted chats!

Home Page:https://GetAnyMessageRobot.t.me/

Repository from Github https://github.comWizardLoop/GetAnyMessageRepository from Github https://github.comWizardLoop/GetAnyMessage

πŸ“¨πŸ”“ GetAnyMessage

get any message from any chat!

Save Restricted Content Easily.

GetAnyMessage is a powerful Telegram bot that lets you retrieve restricted messages (those that cannot be forwarded or copied) from any chat.

πŸ“¨πŸ”“ @GetAnyMessageRobot

AGPL License Made with ❀️ Docker Ready PHP 8.2+

Telegram


πŸ“¦ Features

  • πŸ”“ Retrieve restricted messages from any chat
  • πŸ“ file support up to 4GB
  • 🧩 Supports groups, channels, private messages, bots
  • ⭐️ animated emoji's support
  • πŸ’¬ All types of messages
  • πŸ” Bypass Telegram forward/copy restrictions
  • βš™οΈ Built with MadelineProto & PHP Coroutine Engine

πŸ›  Installation Setup

1️⃣ Clone the repository

git clone https://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
  • API_ID
  • API_HASH
  • BOT_TOKEN
  • ADMIN_ID

πŸ§ͺ Testing & Code Quality

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

βœ… Run tests

docker compose exec bot vendor/bin/phpunit

🎨 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.


Questions? Suggestions? Contact @WizardLoop.

About

A Telegram Bot to receive messages from restricted chats!

https://GetAnyMessageRobot.t.me/

License:GNU Affero General Public License v3.0