/shaqyru

Telegram bot saves data about users: name, city, phone. Then forwards it to group chat. Data is saved in google sheets

Primary LanguagePython

Shaqyru

Telegram bot collects data about users: name, city, phone. Then forwards it to group chat. Data is saved in google sheets and postgresql. App monitoring provided by Sentry.

shaqyru - word from Kazakh шақыру ("invite").

Backend installation

  1. Clone repository
git clone https://github.com/zshanabek/shaqyru
cd shaqyru
  1. Install dependencies via pipenv package management system
pipenv install
  1. Create the environment variables file named .env. In it write down token, Postgresql credentials, Google Sheet ID and Sentry app ID.
ENV=DEVELOPMENT
PG_HOST=localhost
PG_DATABASE=<DATABASE>
PG_USER=<USER>
PG_PASSWORD=<PASSWORD>
BOT_TOKEN=<TOKEN>
GROUP_CHAT_ID=<CHAT_ID>
SHEET_ID=<SHEET_ID>
  1. Run bot
python src/bot.py