A borderline useless Telegram bot written in Python using Aiogram 3.
This bot transforms sent messages into lowercase, uppercase, or capitalised text.
It’s mainly a personal exercise in bot development.
- Convert messages to:
- lowercase
- UPPERCASE
- Capitalised
- Simple commands to switch modes:
/lowercaseor/lower— transform messages to lowercase/uppercaseor/upper— transform messages to uppercase/capitalise— transform messages to capitalised form
- Custom welcome message for a specified user ID.
- Stores user preferences and usernames in an SQLite database asynchronously.
/start— Displays a welcome message (custom for a specific user)./help— Sends a sarcastic help message./lowercaseor/lower— Sets mode to lowercase./uppercaseor/upper— Sets mode to uppercase./capitalise— Sets mode to capitalised text./capitalize— Joke response (no offense to American spelling)./langXX— Responds with a humorous language setting message (does nothing).
When you send a command, your mode is updated in the SQLite database. Normal text messages are transformed according to your selected mode. The bot uses asynchronous SQLite access and Aiogram’s dispatcher for efficient updates. All configuration is handled directly in the main —
- Clone the repo or copy the code.
- Replace
DA_TOKENwith your Telegram bot token. - Replace
custom_idwith your Telegram user ID (optional) for a custom start message. - Modify
Special_msgfor a custom welcome message (optional). - Install dependencies:
pip install aiogram aiosqlite
© Alssandrx204 2025. All rights reserved unless specified otherwise upon request.
“If you’re reading this, you’re probably bored. Go outside or write your own bot!”