Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Telegram bot dlia schityvaniia QR, EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39 i ITF barkodov

License

Notifications You must be signed in to change notification settings

openrecycle/telegram-barcode-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

Telegram Barcode reader

Usage:

First of all, you need to set DB_URI environment variable: export DB_URI=sqlite:////tmptest Or add argument to command: pytohn -m bot .. --db-uri sqlite:////tmp/test.db

SQLAlchemy supports PostgreSQL, MySQL, SQLite, Oracle, etc. You can read here about supported db drivers

Then, you need to set TOKEN: export TOKEN=123456:AAaaaaaaaaaaaaaaaaaaaaaaaaaa

You can get your bot token here.

Database setup:

python -m bot setup-database

Also, you can drop all data before proceed database setup, if you pass --rm flag.

Starting bot with webhook server

python -m bot start-webhook --port 8080

I prefer to use nginx as reverse proxy for mine telegram bots.

Starting bot with polling worker

pythom -m bot start-polling

About

Telegram bot dlia schityvaniia QR, EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39 i ITF barkodov

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors