Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alifeee/whereami_telegram_bot
telegram bot to update https://alifeee.co.uk/whereami/
https://github.com/alifeee/whereami_telegram_bot
Last synced: 2 days ago
JSON representation
telegram bot to update https://alifeee.co.uk/whereami/
- Host: GitHub
- URL: https://github.com/alifeee/whereami_telegram_bot
- Owner: alifeee
- Created: 2024-11-16T16:32:34.000Z (4 days ago)
- Default Branch: main
- Last Pushed: 2024-11-16T22:11:11.000Z (4 days ago)
- Last Synced: 2024-11-16T23:18:38.029Z (4 days ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whereami bot
Telegram bot for
Development:
Obtain a Telegram API token by messaging .
```bash
# install
python -m venv env
source env/bin/activate
pip install -r requirements.txt
# key
cp .env.example .env
nano .env
# run
python bot.py
# create user to run the service
sudo adduser --system --no-create-home --group whereami_bot
sudo chown -R alifeee:whereami_bot embeds/
sudo chown -R alifeee:whereami_bot name/
sudo chown -R alifeee:whereami_bot status/
sudo chown -R alifeee:whereami_bot updates/
# enable service
cp whereami_bot.service /etc/systemd/system/whereami_bot.service
sudo systemctl enable whereami_bot.service
sudo systemctl start whereami_bot.service
sudo systemctl status whereami_bot.service
```Send either a location to the bot with `/location 51.12512 -1.21511`, or share a location (including live location) and a file like `embeds/2987827852.html` should be created with an OpenStreetMap (OSM) HTML embed within it. Clear your location with `/location clear`.
Embed the file in a website with:
```html
```