фикс отклика
This commit is contained in:
1 parent
0fba850cc4
commit
ca0f5bf3de
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -55,7 +55,7 @@ def is_replied_bot(message, is_channel, user_text, config=None):
|
|||||||
if config:
|
if config:
|
||||||
if config.get("call") == "da":
|
if config.get("call") == "da":
|
||||||
mentions_bot = any(
|
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:
|
for call in BOT_CALLS:
|
||||||
if call.startswith("@"):
|
if call.startswith("@"):
|
||||||
|
|||||||
@@ -810,6 +810,7 @@ async def main():
|
|||||||
await bot.delete_webhook(drop_pending_updates=True)
|
await bot.delete_webhook(drop_pending_updates=True)
|
||||||
await dp.start_polling(
|
await dp.start_polling(
|
||||||
bot,
|
bot,
|
||||||
|
skip_updates=True,
|
||||||
allowed_updates = [
|
allowed_updates = [
|
||||||
"message",
|
"message",
|
||||||
"callback_query",
|
"callback_query",
|
||||||
|
|||||||
Reference in new issue
Block a user