Skip to content

Conversation

@m4t7w
Copy link

@m4t7w m4t7w commented Aug 8, 2025

Changes made:

  • Added support for docker compose with profiles (using python:3.13-slim as base image)
  • Added support for other sqldbs (postgres, mariadb, sqlite)
  • Added initialization logic for dbs (create tables if not already present)
  • New db column for saving last language used by users
  • Refractored startup logic
  • Added requirements.txt
  • Added config supports with .env
  • Logger changes to rotating time based logger
  • Updated readme with docker compose and docker-less setup

Commands added:

  • /tts to use the bot without inline mode (e.g. in groups)
  • /to_voice to convert multimedia files to Telegram Voice format
  • /delete_my_data & /privacy to comply with gdpr
  • /delete_user {ID} to delete manually delete a user from db (admin only)
  • /cmd see admin commands (admin only)
  • /log upload log files (owner only)

Commands modified:

  • /addaudio:
    • can be used by replying to an already uploaded file
    • not limited anymore to only TelegramVoice, but user can save normal audios & videos
  • Inline result menu is now ordered with last languages used by the user
  • /start and /help modified for better readability

m4t7w added 20 commits August 2, 2025 15:37
Added startup logic in core.py
Entrypoint moved to __main__.py
Changed inline result id to tts:{language.code} so usage count is only saved when choosing a language
Users can now save audio files, instead of only voice
Moved SIZE_LIMIT to config variable
Config now get loaded from .env file with ENVIROMENT override
Added support for ? and %s sql placeholders
Added DatabaseStartup to setup db
Moved help/start message here
Added commands: /to_voice, /tts, /privacy, /delete_my_data
Added last language used
Added utils for converting bytes into readable string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant