Skip to content

🤖 Package for nix flake that Automatically updates your Telegram profile (name, and bio) every minute. Inspired from: @buzurgmexrubon

License

Notifications You must be signed in to change notification settings

bahrom04/auto-profile-tg

Repository files navigation

🧠 AutoProfile

AutoProfile automatically updates your Telegram profile (first name, last name, and bio) every minute based on:

  • 🕌 Upcoming prayer time
  • 🗓️ Hijri and Gregorian date
  • 🌤️ Local weather
  • 🔄 Time-based status and profile photo

📸 Example Output

  • First name: Buzruk | Tong | 04:38
  • Last name: Chor 11 Iyn | 15 Zul-Q 1446
  • Bio: Bomdod 04:08 (qoldi: 0 soat 15 daqiqa) T: +21°C, Biroz bulutli

📽️ Quickstart Video Guide

Watch the setup video

AutoProfile demo


📁 Requirements


🛠️ Environment Variables

Create a .env file based on .env.example:

API_ID=your_telegram_api_id             # Required, from my.telegram.org
API_HASH=your_telegram_api_hash         # Required
PHONE_NUMBER=your_phone_number          # Required, in international format

WEATHER_API_KEY=openweather_api_key     # Required, from openweathermap.org
LAT=41.311081                           # Required, your city’s latitude
LON=69.240562                           # Required, your city’s longitude
TIMEZONE=Asia/Tashkent                  # Required, your local timezone (IANA)
CITY=Tashkent                           # Required, your city name in English

🐳 Docker (Recommended)

git clone https://github.com/buzurgmexrubon/auto-profile.git
cd autoprofile
cp .env.example .env   # Fill in the required values

Build and run:

docker build -t autoprofile .
docker run --env-file=.env -v /etc/localtime:/etc/localtime:ro autoprofile

If you're using Windows, map your timezone manually:

docker run --env-file=.env -v C:/path/to/timezone:/etc/timezone:ro autoprofile

🐍 Python (Alternative)

Linux/macOS

git clone https://github.com/buzurgmexrubon/auto-profile.git
cd autoprofile
cp .env.example .env
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python main.py

Windows

git clone https://github.com/buzurgmexrubon/auto-profile.git
cd autoprofile
copy .env.example .env
python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
python main.py

🧾 Systemd Service (Linux only)

To run as a background service on boot:

  1. Copy the .service file:

    sudo cp autoprofile.service /etc/systemd/system/
  2. Reload and start:

    sudo systemctl daemon-reexec
    sudo systemctl enable autoprofile
    sudo systemctl start autoprofile

Make sure .env file is placed and readable from the working directory inside the .service file.


🤝 Contributing

We welcome contributions! Please read CONTRIBUTING.md before submitting a pull request or issue.

Notes

poetry install 
poetry run runner 

You can see if your package file compiles

nix-instantiate  --eval default.nix
nix-build default.nix
nix run github:bahrom04/auto-profile-tg

About

🤖 Package for nix flake that Automatically updates your Telegram profile (name, and bio) every minute. Inspired from: @buzurgmexrubon

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •