Traceback (most recent call last):
File "F:/1samoe_nuzhnoe/Py__Python/Telegram/PyCharm/Tg_aiogram_ru5/chat_now_test3.py", line 98, in <module>
async def start(message: types.Message):
async def start(message: types.Message):
@dp.message_handler(commands=['start'])
@dp.message_handler(content_types=["text"])
async def message_handler(message: types.Message):
if message.chat.type == "private":
user_id = message.from_user.id
if not db.exists_user(user_id):
db.add_to_db(user_id)
some_text = ['ключевое слово']
for i in some_text:
if some_text:
send = await bot.send_message(message.chat.id, "Этот текст, видит пользователь, в группе.".format(message.from_user, bot.get_me()), disable_notification=True, disable_web_page_preview=True, parse_mode='html')
break
print('some_text')
print('range(1)')
print('range')