def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat msg = update.effective_message args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text(tld(chat.id, 'warns_filters_list_empty')) return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text(tld(chat.id, 'warns_filters_remove_success')) raise DispatcherHandlerStop msg.reply_text(tld(chat.id, 'warns_filter_doesnt_exist'))
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("No warning filters are active here!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("Yep, I'll stop warning people for that.") raise DispatcherHandlerStop msg.reply_text( "That's not a current warning filter - run /warnlist for all active warning filters." )
def remove_warn_filter(update: Update, context: CallbackContext): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("여기에는 활성 상태의 경고 필터가 없어요!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("네, 그런 경고는 그만할게요.") raise DispatcherHandlerStop msg.reply_text("현재 경고 필터가 아니에요. 모든 활성 경고 필터를 위해 /warnlist 을(를) 입력해보세요.")
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("कोई चेतावनी फ़िल्टर यहां सक्रिय नहीं हैं !") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text( " हां, मैं लोगों को इसके लिए चेतावनी देना बंद कर दूंगा") raise DispatcherHandlerStop msg.reply_text( "That's not a current warning filter - run /warnlist for all active warning filters." )
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split(None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Burada heç bir xəbərdarlıq filtri aktiv deyil!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("Yep, I'll stop warning people for that.") raise DispatcherHandlerStop msg.reply_text("Bu cari bir xəbərdarlıq filtri deyil - bütün aktiv xəbərdarlıq filtrləri üçün /warnlist yazın.")
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Nenhum filtro de warn ativo aqui!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("Vou parar de dar warn por isso.") raise DispatcherHandlerStop msg.reply_text( "Isso não é um filtro de warn atual - digite /warnlist para todos os filtros de warn." )
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split(None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Burada Aktif Uyarı Filtresi Yok!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("Evet, Bunun İçin İnsanları Uyarmayı Bırakacağım.") raise DispatcherHandlerStop msg.reply_text("Bu Geçerli Bir Uyarı Filtresi Değil -Tüm Aktif Uyarı Filtreleri İçin /warnlist Yaz")
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("هنوز کلمه/جمله ممنوعه برام ثبت نشده") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text( "چشم قربان ،من دیگه مردم رو برای این موضوع دستگیر نمیکنم👮🏻♂️") raise DispatcherHandlerStop msg.reply_text( "میبخشید داخل پرونده ها این کلمه/جمله رو نمیبینم /warnlist رو چک کن👮🏻♂️" )
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("මෙහි කිසිදු අනතුරු ඇඟවීමේ පෙරහන් සක්රීය නොවේ!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("ඔව්, මම ඒ සඳහා මිනිසුන්ට අනතුරු ඇඟවීම නවත්වමි.") raise DispatcherHandlerStop msg.reply_text( "එය වත්මන් අනතුරු ඇඟවීමේ පෙරණයක් නොවේ - ධාවනය කරන්න /warnlist සියලුම ක්රියාකාරී අනතුරු ඇඟවීමේ පෙරහන් සඳහා." )
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("لا توجد مرشحات تحذير نشطة هنا!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("نعم، سوف أتوقف عن تحذير الناس لذلك.") raise DispatcherHandlerStop msg.reply_text( "هذا ليس مرشح تحذير الحالي - تشغيل / حذر لجميع مرشحات التحذير النشطة.")
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split(None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Brak aktywnych filtrów ostrzeżeniowych!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("Tak, przestanę dawać futrzakom otrzeżenia za to.") raise DispatcherHandlerStop msg.reply_text("To nie jest obecnie filtr ostrzeżeniowy - Użyj /warnlist żeby zobaczyć listę obecnych filtrów otrzeżeniowych.")
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Aktif uyarı filtresi yok!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("Evet, bunun için insanları uyarmayı bırakacağım.") raise DispatcherHandlerStop msg.reply_text( "Mevcut uyarı filtresi yok - /uyarilistesi komutu ile kontrol edin.")
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1 ) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Nessun filtro di ammonimento attivo!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("Filtro disattivato per questo termine.") raise DispatcherHandlerStop msg.reply_text( "Questo attualmente non è un filtro di ammonimento - esegui /warnlist per la lista di tutti i filtri attivi." )
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Burada xəbərdarlıq filtrləri yoxdur!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text( "Yep, Artıq buna görə insanlara xəbərdarlıq verməyəcəm.") raise DispatcherHandlerStop msg.reply_text( "Bu aktiv xəbərdarlıq filtri deyil - /warnlist yazaraq aktiv xəbərdarlıq filtrlərinə baxa bilərsən." )
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split(None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("ഇവിടെ AUTO-WARN വാക്കുകൾ ഒന്നും ലഭ്യമല്ല!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text("ഞാൻ ഇനി ആ വാക്കിന് താക്കീതുകൾ നൽകുന്നതല്ല") raise DispatcherHandlerStop msg.reply_text("അതൊരു AUTO-WARN വാക്കല്ല /warnlist കൊടുത്ത് ഇപ്പോൾ ലഭ്യമായിട്ടുള്ള AUTO-WARN വാക്കുകൾ നോക്കാവുന്നതാണ്.")
def remove_warn_filter(bot: Bot, update: Update): chat: Optional[Chat] = update.effective_chat msg: Optional[Message] = update.effective_message args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("Tidak ada filter peringatan yang aktif di sini!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text( "Oke, saya akan berhenti memperingatkan orang untuk itu.") raise DispatcherHandlerStop msg.reply_text( "Itu bukan filter peringatan saat ini - jalankan /warnlist untuk semua filter peringatan aktif." )
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text("اومم فیلتر خاصی برای اخطار تعیین نشده برام!") return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text( "باوش من دیگه بخاطر این به ملت اخطار نمیدم ، قول !.") raise DispatcherHandlerStop msg.reply_text( "اومم این یه دستور اخطار درست نیست عزیزم دستور /warnlist رو بزن تا همه رو ببینی!." )
def remove_warn_filter(bot, update, args): chat = update.effective_chat if len(args) < 1: return chat_filters = sql.get_chat_warn_filters(chat.id) if not chat_filters: update.effective_message.reply_text("No warning filters are active here!") return for filt in chat_filters: if filt.chat_id == str(chat.id) and filt.keyword == args[0]: sql.remove_warn_filter(chat.id, args[0]) update.effective_message.reply_text("Yep, I'll stop warning people for that.") raise DispatcherHandlerStop update.effective_message.reply_text("That's not a current warning filter - run /warnlist for all \ active warning filters.")
def remove_warn_filter(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] if len(args) < 1: return chat_filters = sql.get_chat_warn_filters(chat.id) if not chat_filters: update.effective_message.reply_text( "Burada hiçbir uyarı filtresi aktif değil!") return for filt in chat_filters: if filt.chat_id == str(chat.id) and filt.keyword == args[0]: sql.remove_warn_filter(chat.id, args[0]) update.effective_message.reply_text( "Evet, bunun için insanları uyarmayı bırakacağım.") raise DispatcherHandlerStop update.effective_message.reply_text( "Bu geçerli bir uyarı filtresi değil - görmek için /warnlist \ komutunu çalıştırın.")
def remove_warn_filter(bot: Bot, update: Update): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] args = msg.text.split( None, 1) # use python's maxsplit to separate Cmd, keyword, and reply_text if len(args) < 2: return extracted = split_quotes(args[1]) if len(extracted) < 1: return to_remove = extracted[0] chat_filters = sql.get_chat_warn_triggers(chat.id) if not chat_filters: msg.reply_text( "р┤Чр╡Нр┤░р╡Вр┤кр╡Нр┤кр┤┐р╡╜ р┤Зр┤кр╡Нр┤кр╡Лр╡╛ warning filters р┤Тр┤ир╡Нр┤ир╡Бр┤В р┤Зр┤▓р╡Нр┤▓!" ) return for filt in chat_filters: if filt == to_remove: sql.remove_warn_filter(chat.id, to_remove) msg.reply_text( "р┤╢р┤░р┤┐, р┤Ер┤др┤┐р┤ир╡Н р┤Зр┤ир┤┐ warn р┤Ър╡Жр┤пр╡Нр┤пр┤┐р┤▓р╡Нр┤▓!" ) raise DispatcherHandlerStop msg.reply_text( "That's not a current warning filter - run /warnlist for all active warning filters." )