Answer the question
In order to leave comments, you need to log in
How to passively add to the balance in a telegram bot?
Such a question, how can I make the player's balance increase?
So that for example every hour adds 10 to the value in sqlite
I use Telebot!
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
1. Using cron, run a script that will update the data ( only suitable for * nix systems )
2. Perhaps Telebot has a built-in mechanism for working with background loops (at least it is in discord.py, maybe it is here too).
3. Schedule library
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question