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

This commit is contained in:
Pavel_Durov 2023-07-13 19:38:51 +03:00
parent e2467803c5
commit 345168aa80

View File

@ -12,10 +12,10 @@ async def sendall(message: types.Message):
if message.from_user.id == 226765676:
text = message.text[9:]
try:
chats_id = session.query(user.chat_id).distinct()
for row in chats_id:
chats_id = -1001355646177
try:
await bot.send_message(row[0], text)
await bot.send_message(chats_id, text)
except:
print('вероятно бота нет в чате')
await bot.send_message(message.from_user.id, 'Сообщение успешно отправлено во все чаты')