Skip to content

Cloack Bot: Send secret, whisper messages in Telegram groups via inline mode. Easy-to-use, supports private messaging without being part of the group.

Notifications You must be signed in to change notification settings

Burhanverse/CloakBot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cloak Bot

Cloak Bot: Send secret, encrypted messages in Telegram groups via inline mode. Easy-to-use, supports private messaging without being part of the group.


Features

  • 🌐 Inline Mode Support: Send whisper messages without adding the bot to a group.
  • 💬 Secret Messaging: Messages are only visible to the sender and the intended recipient.
  • 🔄 Help and Back Button: Easily access the help menu and navigate back with built-in buttons.
  • 📎 User-Friendly: Simply use the bot in the inline mode to send private messages easily.

Requirements

Before you begin, ensure you have met the following requirements:

  • Python 3.8 or higher.
  • pyrofork & TgCrypto library.
  • A Telegram bot token (you can get one from @BotFather on Telegram).
  • API ID and Hash: You can get these by creating an application on my.telegram.org.

Installation

To install run the following command:

pip install -r requirements.txt

Note: If you previously installed pyrogram, uninstall it before installing pyrofork.

Configuration

  1. Open the config.py file in your favorite text editor.
  2. Replace the placeholders for API_ID, API_HASH, and BOT_USERNAME with your actual values:

How to Set Up Inline Mode

To enable inline mode for your bot, follow these steps:

  • Open a chat with BotFather in Telegram.
  • Send the command /setinline to BotFather.
  • Choose the bot for which you want to enable inline mode.
  • After that, send a sample text like: Hi or Hello.

For more information on inline bots, refer to the Telegram Bot Documentation.

Deploy the Bot

git clone https://github.com/Burhanverse/CloakBot
cd CloakBot
python cloack.py

Bot Commands

  • /start: Sends a welcome message with instructions on how to use the bot.
  • Inline Query: Use @cloakxbot your message @username in an inline query to send a whisper message. @cloakxbot Example Bot use your own bot.

How to Use

  1. Inline Mode:
    • Use the bot in inline mode by typing @cloakxbot <your whisper> @<recipient_username> or userid.
    • For example: @cloakxbot hello this is a test messages @burhanverse.
    • Only the sender and the recipient will be able to view the secret message.

Note

  • User ID Restriction: If a user has not started the bot, you will not be able to send secret messages to them using their user ID. Ensure that the recipient has interacted with the bot at least once by clicking Start.

  • Author: @itsSmartDev

Note: If you found this repo helpful, please fork and star it. Also, feel free to share with proper credit!

About

Cloack Bot: Send secret, whisper messages in Telegram groups via inline mode. Easy-to-use, supports private messaging without being part of the group.

Topics

Resources

Stars

Watchers

Forks

Languages

  • Python 100.0%