Skip to content

a borderline useless telegram bot wrote in Python based on Aiogram 3 to lowercase, uppercase, capitalise the sent messages (just an exercise for me)

Notifications You must be signed in to change notification settings

Alessandrx204/The_case_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

The_case_bot

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.


✨ Features

  • Convert messages to:
    • lowercase
    • UPPERCASE
    • Capitalised
  • Simple commands to switch modes:
    • /lowercase or /lower — transform messages to lowercase
    • /uppercase or /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.

🤖 Commands

  • /start — Displays a welcome message (custom for a specific user).
  • /help — Sends a sarcastic help message.
  • /lowercase or /lower — Sets mode to lowercase.
  • /uppercase or /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).

🧠 How it works

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 —

hardcoding is an art!

⚙️ Setup

  1. Clone the repo or copy the code.
  2. Replace DA_TOKEN with your Telegram bot token.
  3. Replace custom_id with your Telegram user ID (optional) for a custom start message.
  4. Modify Special_msg for a custom welcome message (optional).
  5. Install dependencies:
    pip install aiogram aiosqlite

⚠️ License & Rights

© 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!”

About

a borderline useless telegram bot wrote in Python based on Aiogram 3 to lowercase, uppercase, capitalise the sent messages (just an exercise for me)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages