randydev commited on
Commit
b66e1d7
·
verified ·
1 Parent(s): 6373b8e

Update chatbot/plugins/chat.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/chat.py +6 -2
chatbot/plugins/chat.py CHANGED
@@ -266,7 +266,11 @@ async def askcmd(client: Client, message: Message):
266
  await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
267
  return
268
  except Exception as e:
269
- return await pro.edit_text(f"Error: {e}")
 
 
 
 
270
 
271
  @Client.on_message(
272
  filters.incoming
@@ -274,7 +278,7 @@ async def askcmd(client: Client, message: Message):
274
  filters.text
275
  | filters.regex(r"\b(Randy|Rendi)\b(.*)", flags=re.IGNORECASE)
276
  )
277
- & (filters.private | filters.group | filters.business)
278
  & filters.reply
279
  & ~filters.command(DISABLE_COMMAND)
280
  & ~filters.bot
 
266
  await client.send_chat_action(message.chat.id, enums.ChatAction.CANCEL)
267
  return
268
  except Exception as e:
269
+ return await pro.edit_text(f"Error: {e}")
270
+
271
+ @Client.on_message(filters.text & filters.business)
272
+ async def bussines_bot(client: Client, message: Message):
273
+ LOGS.info(f"Update: {message}")
274
 
275
  @Client.on_message(
276
  filters.incoming
 
278
  filters.text
279
  | filters.regex(r"\b(Randy|Rendi)\b(.*)", flags=re.IGNORECASE)
280
  )
281
+ & (filters.private | filters.group)
282
  & filters.reply
283
  & ~filters.command(DISABLE_COMMAND)
284
  & ~filters.bot