def rm_channel(chat_id): rem = SESSION.query(fban).get(str(chat_id)) if rem: SESSION.delete(rem) SESSION.commit()
def removeid(chat_id): safai = SESSION.query(Blockedid).get(str(chat_id)) if safai: SESSION.delete(safai) SESSION.commit()