Skip to content
/ sboss Public

A sample to freely host a telegram bot as cloud functions and integrated with firebase firestore

Notifications You must be signed in to change notification settings

thiyagab/sboss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sboss

A sample to freely host a telegram bot as cloud functions and integrated with firebase firestore

This project uses firebase-admin and python-telegram-bot sdk.

  1. Create a project with Google cloud
  2. Create a service user for your project and download the credentials as json file to this working directory, rename it to serviceaccount.json
  3. We use this account to update and read the firestore db
  4. Setup gcloud cli and login to your project
  5. Deploy to google cloud using the following command,
$ gcloud beta functions deploy sboss --set-env-vars "TELEGRAM_TOKEN=000:yyy" --runtime python37 --trigger-http

About

A sample to freely host a telegram bot as cloud functions and integrated with firebase firestore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages