Skip to content

Cabin303/TG_Mem_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TG Mem Bot 🎭

Python Telegram Deploy

Telegram meme-generator bot built with aiogram v3 and g4f.

Features:

  • πŸ“Έ Generate memes based on a given topic
  • 🧩 Maintain conversational context with memory
  • πŸ“ Support different roles (response styles)

πŸš€ Installation & Run

  1. Clone the repository:

    git clone https://github.com/yourname/tg-mem-bot.git
    cd tg-mem-bot
  2. Create virtual environment & install dependencies:

    python -m venv .venv
    source .venv/bin/activate   # Linux/Mac
    .venv\Scripts\activate      # Windows
    
    pip install -r requirements.txt
  3. Create .env file:

    TOKEN_TG=your_telegram_bot_token
  4. Run:

    python TG_mem_bot.py

βš™οΈ Environment Variables

  • TOKEN_TG β€” Telegram bot token from BotFather
  • G4F_TEXT_TIMEOUT β€” text generation timeout (sec), default 15
  • G4F_IMAGE_TIMEOUT β€” image generation timeout (sec), default 20

πŸ“– Commands

  • /start β€” start bot
  • /help β€” show help
  • /clear β€” clear memory

Text commands:

  • ΠžΠ±Ρ‰Π΅Π½ΠΈΠ΅: <topic> β€” set topic for dialog (with memory)
  • Роль: <role> β€” set system role (response style)
  • МСм: <topic> β€” generate meme with caption & image

πŸ›  Deploy on Railway

  1. Connect repository to Railway.
  2. Add Variables:
    TOKEN_TG=your_telegram_bot_token
    
  3. Deploy β†’ Bot is live in Telegram πŸš€

πŸ“œ License

MIT

Minor change for author test

About

Telegram bot for sending random memes πŸ˜‚ Fetches content, delivers fun straight into your chat πŸŽ‰ Just a simple training project on Python πŸ€–

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors