Skip to content

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

Notifications You must be signed in to change notification settings

zshanabek/shaqyru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published