def gmutelist(bot: Bot, update: Update): muted_users = sql.get_gmute_list() if not muted_users: update.effective_message.reply_text("There aren't any gmuted users! You're kinder than I expected...") return mutefile = 'Screw these guys.\n' for user in muted_users: mutefile += "[x] {} - {}\n".format(user["name"], user["user_id"]) if user["reason"]: mutefile += "Reason: {}\n".format(user["reason"]) with BytesIO(str.encode(mutefile)) as output: output.name = "gmutelist.txt" update.effective_message.reply_document(document=output, filename="gmutelist.txt", caption=" GMUTED .")
def gmutelist(bot: Bot, update: Update): muted_users = sql.get_gmute_list() if not muted_users: update.effective_message.reply_text("Qlobal olaraq susdurulmuş istifadəçi yoxdur! Güman etdiyimdən daha mərhəmətlisən...") return mutefile = 'Bu qağaşlara baxın.\n' for user in muted_users: mutefile += "[x] {} - {}\n".format(user["name"], user["user_id"]) if user["reason"]: mutefile += "Səbəb: {}\n".format(user["reason"]) with BytesIO(str.encode(mutefile)) as output: output.name = "gmutelist.txt" update.effective_message.reply_document(document=output, filename="gmutelist.txt", caption="Qlobal olarq susdurulmuşlar.")
def gmutelist(bot: Bot, update: Update): muted_users = sql.get_gmute_list() if not muted_users: update.effective_message.reply_text("Gmuted භාවිතා කරන්නන් නොමැත! මම හිතුවට වඩා ඔයා කරුණාවන්තයි ...😊😘") return mutefile = 'Screw these guys.\n' for user in muted_users: mutefile += "[x] {} - {}\n".format(user["name"], user["user_id"]) if user["reason"]: mutefile += "Reason: {}\n".format(user["reason"]) with BytesIO(str.encode(mutefile)) as output: output.name = "gmutelist.txt" update.effective_message.reply_document(document=output, filename="gmutelist.txt", caption="දැනට gmuted භාවිතා කරන්නන්ගේ ලැයිස්තුව මෙන්න.")
def gmutelist(bot: Bot, update: Update): muted_users = sql.get_gmute_list() if not muted_users: update.effective_message.reply_text( "Heç bir səssiz istifadəçi yoxdur! Gözlədiyimdən daha mehribansan ..." ) return mutefile = '.\n' for user in muted_users: mutefile += "[x] {} - {}\n".format(user["name"], user["user_id"]) if user["reason"]: mutefile += "Səbəb: {}\n".format(user["reason"]) with BytesIO(str.encode(mutefile)) as output: output.name = "gmutelist.txt" update.effective_message.reply_document( document=output, filename="gmutelist.txt", caption="Here is the list of currently gmuted users.")
def gmutelist(bot: Bot, update: Update): muted_users = sql.get_gmute_list() if not muted_users: update.effective_message.reply_text( "Nie ma żadnego globalnie wyciszonego futrzaka! Jesteś milszy niż się spodziewałem..." ) return mutefile = 'Walić tych futrzaków.\n' for user in muted_users: mutefile += "[x] {} - {}\n".format(user["name"], user["user_id"]) if user["reason"]: mutefile += "Reason: {}\n".format(user["reason"]) with BytesIO(str.encode(mutefile)) as output: output.name = "gmutelist.txt" update.effective_message.reply_document( document=output, filename="gmutelist.txt", caption="Tutaj jest lista obecnie globalnie wyciszonych futrzaków." )