forked from Pavel_Durov/python_bot
fix
This commit is contained in:
parent
46fc25db39
commit
ae13e5a8ff
@ -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)
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user