A bot that implements the IRC-style /me command in Telegram chats. Allows users to send messages in the format "action", for example:
*is drinking coffee* or *is going on vacation*.
Caution
user mode.
bot mode is strongly recommended.
- Supports the
/me <action>command in group chats. - Automatically deletes the original command message.
- Sends the result as an anonymous message from the group (only when running as a user account with admin anonymity enabled).
The bot can run in two modes — as an official Telegram Bot or as a regular user account. The chosen mode affects appearance and functionality.
-
Pros:
- Easy and legitimate setup via @BotFather.
- No phone number required.
-
Cons:
- All messages will appear from the bot (e.g., "@MyMeBot: is drinking coffee").
- Cannot hide the fact that a bot is being used.
-
Required chat permissions:
- Delete messages (
can_delete_messages). - Send messages.
- Delete messages (
-
Pros:
- If the account is added as an anonymous admin, messages appear from the group itself, with no sender name shown — visually matching the IRC
/mestyle (*is drinking coffee*).
- If the account is added as an anonymous admin, messages appear from the group itself, with no sender name shown — visually matching the IRC
-
Cons:
- Requires authentication using a real Telegram account (phone number).
- Automating user accounts violates Telegram’s Terms of Service and may result in account termination.
- Requires manual admin setup in each chat.
-
Required chat permissions:
- Promote the account to admin.
- Enable "Remain Anonymous" during admin promotion (or in group admin settings).
- Grant "Delete messages" permission.
-
Install uv:
curl -LsSf https://astral.sh/uv/install.sh | shwget -qO- https://astral.sh/uv/install.sh | sh -
Install the bot:
git clone https://github.com/katulos/mebot cd mebot uv venv source .venv/bin/activate uv pip install .
-
Create a
.secrets.ymlfile and configure it based on your mode:api_id: your_api_id api_hash: your_api_hash bot_token: your_bot_token_here admins: [your_telegram_id] # List of admin Telegram IDs
api_id: your_api_id api_hash: your_api_hash phone: your_phone_number admins: [your_telegram_id] # List of admin Telegram IDs
You can obtain
api_idandapi_hashat my.telegram.org. -
Run the bot:
mebot start
On first launch in
usermode, you’ll be prompted to enter a verification code sent by Telegram.
- Add the bot to your group.
- Promote it to admin with "Delete messages" permission.
- Add your user account to the group.
- Promote it to admin and ensure "Remain Anonymous" is enabled.
- Grant the "Delete messages" permission.
Then use the command:
/me is dancing in the rain
→ The original message will be deleted, and the chat will show:
*Username is dancing in the rain*
(In user mode with anonymity: no sender shown; in bot mode: message appears from the bot.)
MIT License. See the LICENSE file for details.