fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pavel_Duron 2022-12-06 22:19:47 +10:00
parent 46fc25db39
commit ae13e5a8ff
2 changed files with 3 additions and 16 deletions

View File

@ -1,13 +0,0 @@
from aiogram import types, Dispatcher
from create_bot import bot, dp
from sqdb import user, session
@dp.message_handler(commands=['alarming'])
async def notify_chats():
for chats in session.query(user.chat_id).distinct():
session.close()
await bot.send_message(chats,'<b>Ведутся пажилые работы,\n Ожидайте...</b>')
await bot.send_message(226765676, text= 'рассылка завершена')
def register_handlers_alarm(dp: Dispatcher):
dp.register_message_handler(notify_chats)

View File

@ -37,10 +37,10 @@ async def up_dick(message: types.Message):
a.dick_size = (a.dick_size + numb)
a.datetimes = datetime.datetime.now()
session.commit() #обновляет запись
session.close()
await bot.send_message(message.chat.id, f'@{message.from_user.username}, ваш писюн {size_change}\n\
Теперь он равен <b>{a.dick_size}</b> см! ')
session.close()
else: