aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuker667 <huker@tuta.io>2026-08-06 08:34:20 +0300
committerhuker667 <huker@tuta.io>2026-08-06 08:34:20 +0300
commitca0f5bf3deed8bbc82a79834a9419233b559ce14 (patch)
tree378c21903ed53fecef0046a544431439901fbd80
parent0fba850cc4b610a6967043130171a2c2e823a0bd (diff)
downloaduzbekgpt-ca0f5bf3deed8bbc82a79834a9419233b559ce14.tar.gz
uzbekgpt-ca0f5bf3deed8bbc82a79834a9419233b559ce14.tar.bz2
uzbekgpt-ca0f5bf3deed8bbc82a79834a9419233b559ce14.zip
фикс отклика
-rw-r--r--helpers.py2
-rw-r--r--main.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/helpers.py b/helpers.py
index 3ca95d0..57f8b30 100644
--- a/helpers.py
+++ b/helpers.py
@@ -55,7 +55,7 @@ def is_replied_bot(message, is_channel, user_text, config=None):
if config:
if config.get("call") == "da":
mentions_bot = any(
- user_text.lower().startswith(call.lower()) for call in BOT_CALLS
+ user_text.lower().split(" ", 1)[0] == call for call in BOT_CALLS
)
for call in BOT_CALLS:
if call.startswith("@"):
diff --git a/main.py b/main.py
index 1e6937a..0a3ab08 100644
--- a/main.py
+++ b/main.py
@@ -810,6 +810,7 @@ async def main():
await bot.delete_webhook(drop_pending_updates=True)
await dp.start_polling(
bot,
+ skip_updates=True,
allowed_updates = [
"message",
"callback_query",