add nostream flag

This commit is contained in:
huker667 committed 2026-07-16 13:18:52 +03:00
1 parent 66038368a6
commit 00b9814f6e
1 file changed
+2 -2
+2 -2
View File
@@ -239,9 +239,9 @@ async def generate(
f"2. конфиг бота настроен неправильно и надо связаться с тем кто его хостит"
return text
if stream_cf == "native" and user_id == chat_id:
if stream_cf == "native" and user_id == chat_id and settings.get("nostream") == False:
stream = True
elif stream_cf == "edit" and chat_id and message_id:
elif stream_cf == "edit" and chat_id and message_id and settings.get("nostream") == False:
stream = True
else:
stream = False