Исправление формирования истории

This commit is contained in:
Марычев Павел Иванович 2022-03-15 22:00:40 +04:00
parent 20d46de4bd
commit fd31db097d

View File

@ -141,9 +141,9 @@ def check():
limits = atmInfo['limits']
for limit in limits:
if limit['currency'] == 'USD':
history.append(f'{datetime.now()}: {decoded["address"]} - Сумма: {limit["amount"]}$')
for id in id_chats:
bot.send_message(id, f'{decoded["address"]} - Сумма: {limit["amount"]}$')
history.append(f'{datetime.now()}: {decoded["address"]} - Сумма: {limit["amount"]}$')
count += 1
last_check = datetime.now()
time.sleep(600)