Telegram blueprint delivery bot File Indexer

@velesagrobot

For last 3 weeks I have been slowly working with another project – a telegram bot for machine-building production. The main task is blueprints access providing for employees. The Telegram bot allows to control user access, thereby providing freedom of use without being tied to the workplace (using a smartphone).

The program periodically indexes folder with pdf files. When user sending a request with a blueprint number, the bot responds by sending a file or a list of files to select the desired file

At the moment, I have launched beta testing among several employees of the enterprise. The following bugs have already been found:
1. The bot just stopped responding. An unhandled exception has occurred. The problem is solved by wrapping the main function in a simple construction:

# Start bot
while True:
    try:
        asyncio.run(bot.polling(none_stop=True, interval=0))
    except Exception as e:
        print(e)
        time.sleep(15)

2. I’m waiting for new reviews.

See also  How to create tuple from Django model for choosing in form

Screenshots:

 

Author: admin

Leave a Reply

Your email address will not be published. Required fields are marked *