T
T
This_is_MonoliT2022-04-07 15:43:03
Bots
This_is_MonoliT, 2022-04-07 15:43:03

How to make income system by time in python telegram bot?

I am making a telegram bot

Information about the development environment: Python,TeleBot

Information about the bot: Invest bot (like that)

Question: How can I make sure that a certain amount of money is given to a certain user on the balance, at a certain time

Well, or you can do it in another way, the main thing to have something like Invest bot

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zagir Majidov, 2022-04-07
@Zagir-vip

# Вой примерный код
def income():
   users = пользователи из бд или файла
   for user in users:
      user["balance"]+= user["regular_income"] #Получаем ежедневный доход и обновляем баланс
      ### если нужно сохраните процесс ###

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question