JamesBond531 commited on
Commit
c40652d
1 Parent(s): af849c7

Update database/ia_filterdb.py

Browse files
Files changed (1) hide show
  1. database/ia_filterdb.py +4 -3
database/ia_filterdb.py CHANGED
@@ -332,7 +332,8 @@ async def force_sub(bot, message):
332
  await k.delete()
333
  return False
334
  except Exception as e:
335
- await bot.send_message(chat_id=admin, text=f"❌ Error in Fsub:\n`{str(e)}`")
336
- return False
 
337
  else:
338
- return True
 
332
  await k.delete()
333
  return False
334
  except Exception as e:
335
+ await update_group(message.chat.id, {"f_sub":False})
336
+ await bot.send_message(chat_id=admin, text=f"❌ Error in Fsub: `{str(e)}`\n\nYour Fsub to Channel is Removed, Make sure I'm admin in that channel & this group with all permissions\n\nAfter doing this, you need to Add Fsub again!")
337
+ return False
338
  else:
339
+ return True