Skip to content

jhonprimedev/telegram-bot-read-and-generate-qr-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot QR Code

It is a telegram bot that can generate and read QR code

Requirements

  • Python 3.11
  • pip3
  • virtualenv

Virtual environments

This project requires a virtual environment, in this case virtualenv is used.

$ python -m virtualenv venv

Enable virtual environment

$ source venv/Scripts/activate

Install all project dependencies using:

$ pip install -r requirements.txt

Variable environment

Copy the .env-example file to .env, create a bot with Telegram BotFather, copy the accesses and configure the .env file.

$ copy .env-example .env

.env file

APP_ENV=true

TELEGRAM_BOT_NAME=
TELEGRAM_BOT_TOKEN=
TELEGRAM_BOT_WEBHOOK=

CONTACT_PAGE_LINK=

Running

$ python app.py 

Set webhook to enable telegram bot e.g. https://domain.com/handler, it must replace the domain and only works with SSL.

About

It is a telegram bot that can generate and read QR code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages