Whisper Bot: Send secret, encrypted messages in Telegram groups via inline mode. Easy-to-use, supports private messaging without being part of the group.
- 🌐 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.
Before you begin, ensure you have met the following requirements:
- Python 3.8 or higher.
pyrofork
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.
To install pyrofork
run the following command:
pip install pyrofork
Note: If you previously installed pyrogram
, uninstall it before installing pyrofork
.
- Open the
config.py
file in your favorite text editor. - Replace the placeholders for
API_ID
,API_HASH
, andBOT_USERNAME
with your actual values:API_ID
: Your API ID from my.telegram.org.API_HASH
: Your API Hash from my.telegram.org.BOT_TOKEN
: The token you obtained from @BotFather.BOT_USERNAME
: Your Created Bot Username from @BotFather.
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
orHello
.
For more information on inline bots, refer to the Telegram Bot Documentation.
git clone https://github.com/bisnuray/WhisperBot
cd WhisperBot
python whisper.py
- /start: Sends a welcome message with instructions on how to use the bot.
- Inline Query: Use
@LockTextBot your message @username
in an inline query to send a whisper message.@LockTextBot
Example Bot use your own bot.
- Inline Mode:
- Use the bot in inline mode by typing
@LockTextBot <your whisper> @<recipient_username> or userid
. - For example:
@LockTextBot hello this is a test messages @BisnuRay
. - Only the sender and the recipient will be able to view the secret message.
- Use the bot in inline mode by typing
- 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.
- Name: Bisnu Ray
- Telegram: @itsSmartDev
✨ Note: If you found this repo helpful, please fork and star it. Also, feel free to share with proper credit!