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
- 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
Watch the setup video
- Python 3.8+
- Telegram account
- API credentials
- OpenWeather API key
.env
configuration (see below)
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
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
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
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
To run as a background service on boot:
-
Copy the
.service
file:sudo cp autoprofile.service /etc/systemd/system/
-
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.
We welcome contributions!
Please read CONTRIBUTING.md
before submitting a pull request or issue.
poetry install
poetry run runner
nix-instantiate --eval default.nix
nix-build default.nix
nix run github:bahrom04/auto-profile-tg