def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text("Reporting acceso! Verrai notificati ogni volta che qualcuno riporta qualcosa.") elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text("Reporting spento. Non verrai notificato.") else: msg.reply_text("Le tue impostazioni attuali per il modulo Reporting sono: `{}`".format(sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text("Reporting acceso! Tutti gli admin che hanno abilitato il reporting verranno notificati ogni voltra che un utente usa il comando /reporting " "o @admin") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text("Reporting spento. Nessun admin verrà notificato.") else: msg.reply_text("This chat's current setting is: `{}`".format(sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "채팅방 관리자에게 신고 기능을 켰어요! 관리자들은 누군가 /report 명령어를 쓰는 즉시 알림이 뜰 거예요!" ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text("채팅방 관리자에게 신고 기능을 껐어요! 당신은 아무것도 보고할 수 없어요.") else: msg.reply_text("현재 당신의 채팅방 관리자에게 신고 기능 설정 : `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "채팅방 관리자에게 신고 기능을 켰어요! 관리자들은 누군가 /report 명령어를 쓰는 즉시 알림이 뜰 거예요!" ) elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text("채팅방 관리자에게 신고 기능을 껐어요! 당신은 아무것도 신고할 수 없어요.") else: msg.reply_text("현재 당신의 채팅방 관리자에게 신고 기능 설정 : `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text("रिपोर्टिंग चालू की! जब भी किसी को कुछ रिपोर्ट करेंगे तो आपको सूचित किया जाएगा।.") elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text("रिपोर्टिंग is off! जब भी किसी को कुछ रिपोर्ट करेंगे तो आपको सूचित nahi किया जाएगा।") else: msg.reply_text("Your current report preference is: `{}`".format(sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text("Turned on reporting! Admins who have turned on reports will be notified when /report " "or @admin are called.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text("Turned off reporting! No admins will be notified on /report or @admin.") else: msg.reply_text("This chat's current setting is: `{}`".format(sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text("Turned on reporting! You'll be notified whenever anyone reports something.") elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text("Turned off reporting! You wont get any reports.") else: msg.reply_text("Your current report preference is: `{}`".format(sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text("Turned on reporting! Admins who have turned on reports will be notified when /report " "or @admin are called.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text("Turned off reporting! No admins will be notified on /report or @admin.") else: msg.reply_text("This chat's current setting is: `{}`".format(sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("روشن", "on"): sql.set_user_setting(chat.id, True) msg.reply_text("حالت خبرچین فعال شد! اگه کسی درخواست بده سریعا بهتون اطلاع میدم.") elif args[0] in ("خاموش", "off"): sql.set_user_setting(chat.id, False) msg.reply_text("حالت خبرچین غیرفعال شد! کسی بمیره هم بهت اطلاع نمیدم😄") else: msg.reply_text("حالت خبرچین شما : `{}`".format(sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("روشن", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text("خبرچین گپ فعال شد ، اگه کسی از دستور ریپورت یا /report روی کسی" "ریپلی کنه من سریعا به ادمینها اطلاع میدم.") elif args[0] in ("غیرفعال", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text("حالت خبرچین غیرفعال شد . اینجا همدیگه هم بکشن ، من صدام درنمیاد☹️.") else: msg.reply_text("حالت خبرچین این گپ: `{}`".format(sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("ac", "evet"): sql.set_user_setting(chat.id, True) msg.reply_text("Şikayet etme açıldı! Herhangi biri bir şey bildirdiğinde bilgilendirileceksiniz.") elif args[0] in ("kapat", "hayir"): sql.set_user_setting(chat.id, False) msg.reply_text("Şikayet etme kapatıldı! Herhangi bir rapor almayacaksınız.") else: msg.reply_text("Mevcut rapor tercihiniz: `{}`".format(sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("ac", "evet"): sql.set_chat_setting(chat.id, True) msg.reply_text("Şikayet etme seçeneği açıldı! /sikayetet ve @yönetici komutları artık çalışıyor ! " "Yöneticilere bildirim yapılacak.") elif args[0] in ("kapat", "hayir"): sql.set_chat_setting(chat.id, False) msg.reply_text("Şikayet etme seçeneği kapatıldı. /sikayetet ve @yönetici komutları artık çalışmayacak.") else: msg.reply_text("Bu sohbetin mevcut ayarı: `{}`".format(sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Aktifkan pelaporan! Anda akan diberi tahu setiap kali ada yang melaporkan sesuatu." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Nonaktifkan pelaporan! Anda tidak akan mendapatkan laporan apapun." ) else: msg.reply_text( "Preferensi laporan Anda saat ini adalah: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN, ) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Aktifkan pelaporan! Admin yang telah mengaktifkan laporan akan diberi tahu ketika /report " "atau @admin jika dipanggil.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Nonaktifkan pelaporan! Tidak ada admin yang akan diberitahukan pada /report atau @admin." ) else: msg.reply_text( "Pengaturan obrolan saat ini adalah: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN, )
def report_setting(update: Update, context: CallbackContext): bot, args = context.bot, context.args chat = update.effective_chat msg = update.effective_message if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Turned on reporting! You'll be notified whenever anyone reports something." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Turned off reporting! You wont get any reports.") else: msg.reply_text( f"Your current report preference is: `{sql.user_should_report(chat.id)}`", parse_mode=ParseMode.MARKDOWN, ) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Turned on reporting! Admins who have turned on reports will be notified when /report " "or @admin is called.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Turned off reporting! No admins will be notified on /report or @admin." ) else: msg.reply_text( f"This group's current setting is: `{sql.chat_should_report(chat.id)}`", parse_mode=ParseMode.MARKDOWN, )
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Reporting aktiv edildi! Əgər kimsə nəyisə bildirsə adminlərə bildiriş gedəcək." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Reporting deaktiv edildi! Əgər kimsə məyisə bildirsə adminlərə bildiriş gedəcək." ) else: msg.reply_text("Hazırkı report ayarı: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Reporting aktiv edildi! Kimsə /report " "və ya @admin əmrlərini işlətsə adminlərə bildiriç gedəcək." ) elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Reporting deaktiv edildi! İstifadəçilər /report və ya @admin əmrini işlətsə adminlərə bildiriş getməyəcək." ) else: msg.reply_text("Hazırki ayar: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Pelaporan diaktifkan!, Anda akan diberi tahu setiap kali ada yang melaporkan sesuatu di dalam grup." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Pelaporan dinonaktifkan, Anda tidak akan menerima laporan lagi dari grup." ) else: msg.reply_text( "Preferensi laporan anda saat ini adalah: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Pelaporan diaktifkan!, Admin yang mengaktifkan pelaporan akan di beritahu jika ada anggota yang mengatakan /report " "atau dipanggil dengan tag @admin.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Pelaporan dinonaktifkan!, admin tidak akan lagi diberitahu jika ada yang mengatakan /report atau @admin." ) else: msg.reply_text("This chat's current setting is: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat msg = update.effective_message if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Mengaktifkan laporan! Anda akan diberi tahu jika ada laporan." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Menonaktifkan laporan! Anda tidak akan mendapat laporan apapun." ) else: msg.reply_text( f"Your current report preference is: `{sql.user_should_report(chat.id)}`", parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Turned on reporting! Admins who have turned on reports will be notified when /report " "or @admin are called.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Turned off reporting! No admins will be notified on /report or @admin." ) else: msg.reply_text( f"This chat's current setting is: `{sql.chat_should_report(chat.id)}`", parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "වාර්තා කිරීම සක්රිය කර ඇත! කවුරුහරි යමක් වාර්තා කළ විට ඔබට දන්වනු ලැබේ." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "වාර්තා කිරීම අක්රියයි! ඔබට කිසිදු වාර්තාවක් ලැබෙන්නේ නැත." ) else: msg.reply_text("Your current report preference is: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "වාර්තා කිරීම සක්රිය කර ඇත! වාර්තා සක්රිය කර ඇති පරිපාලකයින්ට කවදාදැයි දැනුම් දෙනු ලැබේ /report " "හෝ @admin ලෙස හැඳින්වේ.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "වාර්තා කිරීම අක්රියයි! කිසිදු පරිපාලකවරයෙකුට දැනුම් දෙනු නොලැබේ /report or @admin." ) else: msg.reply_text("This chat's current setting is: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Ativei os reports! Você será notificado quando alguém reportar algo." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Turned off reporting! You wont get any reports.") else: msg.reply_text("A sua preferência de reports é: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Ativei os reports! Admins que tiverem ligado os reports serão notificados quando /report " "ou @admin for chamado.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Desativei os reports! Nenhum admin será notificado com o /report ou @admin." ) else: msg.reply_text("This chat's current setting is: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Raporlama açıldı! Herhangi biri bir şey bildirdiğinde bilgilendirileceksiniz." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Raporlama kapatıldı! Herhangi bir rapor almayacaksınız.") else: msg.reply_text("Mevcut rapor tercihiniz: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Raporlama açıldı! Raporları etkinleştiren yöneticiler, /report edildiğinde bilgilendirilecek " "ya da @admin Çağırldığında.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Raporlama kapatıldı! /report veya @admin ile ilgili hiçbir yönetici bilgilendirilmeyecektir." ) else: msg.reply_text("Mevcut rapor tercihiniz: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Habercilik açık! Ne zaman biri bir şey bildirse size bildirilir.." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Habercilik kapatıldı! Herhangi bir rapor almak olmaz.") else: msg.reply_text("Geçerli rapor tercihiniz: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Habercilik açık! Raporları açık olan yöneticiler " "veya @admin denir.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Habercilik kapatıldı! /report veya @admin'da yönetici bilgilendirilmeyecektir." ) else: msg.reply_text("Bu sohbetin geçerli ayarı: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Rapor alınabilir! Birisi bir şey bildirdiğinde bildirim alacaksınız." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "Raporlama kapatıldı. Herhangi bir rapor almayacaksınız.") else: msg.reply_text("Mevcut rapor tercihiniz: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text("Raporlama etkin. /report veya " "@admin şeklinde raporlayabilirsiniz.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Raporlama iptal edildi! /report veya @admin üzerinde hiçbir yönetici bildirilmez." ) else: msg.reply_text("Mevcut rapor tercihiniz: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "Kisi ke kuch bhi report karne pe apko notify kiya jaega.") elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text( "kisi ke report karne pe apko notification nhi milegi") else: msg.reply_text("Your current report preference is: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "admins ko notify kiya jaega jinki reporting ON h agar koi user /report " "or @admin use kare to.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "admins ko notify nhi kiya jaega jinki reporting ON h agar koi user /report or @admin use karega." ) else: msg.reply_text("Group ki reporting setting abhi: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)
def report_setting(bot: Bot, update: Update, args: List[str]): chat = update.effective_chat # type: Optional[Chat] msg = update.effective_message # type: Optional[Message] if chat.type == chat.PRIVATE: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_user_setting(chat.id, True) msg.reply_text( "سکاڵاکردن چالاککرا! ئاگاداردەکرێیتەوە هەرکاتێک یەکێک سکاڵایەکی کرد." ) elif args[0] in ("no", "off"): sql.set_user_setting(chat.id, False) msg.reply_text("سکاڵاکردن ناچالاککرا!") else: msg.reply_text("Your current report preference is: `{}`".format( sql.user_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN) else: if len(args) >= 1: if args[0] in ("yes", "on"): sql.set_chat_setting(chat.id, True) msg.reply_text( "Turned on reporting! Admins who have turned on reports will be notified when /report " "or @admin are called.") elif args[0] in ("no", "off"): sql.set_chat_setting(chat.id, False) msg.reply_text( "Turned off reporting! No admins will be notified on /report or @admin." ) else: msg.reply_text("This chat's current setting is: `{}`".format( sql.chat_should_report(chat.id)), parse_mode=ParseMode.MARKDOWN)