def lesbian(update: Update, context: CallbackContext): chat = update.effective_chat.id if sql.is_nsfw_false(chat) == True: return bot = context.bot msg = update.effective_message user = update.effective_message.message_id nek = nekos.img("les") bot.send_photo(chat_id=chat, photo=nek, reply_to_message_id=user)
def kuni(update: Update, context: CallbackContext): chat = update.effective_chat.id if sql.is_nsfw_false(chat) == True: return bot = context.bot msg = update.effective_message user = update.effective_message.message_id nek = nekos.img("kuni") bot.send_animation(chat_id=chat, animation=nek, reply_to_message_id=user)
def waifu(update: Update, context: CallbackContext): chat = update.effective_chat.id if sql.is_nsfw_false(chat) == True: return bot = context.bot msg = update.effective_message user = update.effective_message.message_id nek = nekos.img("waifu") r = request.get(nek) o = open(r, "rb") bot.send_sticker(chat_id=chat, sticker=o, reply_to_message_id=user)
def nsfw(update: Update, context: CallbackContext): status = " " bot = context.bot if chek == True: status = "Off" else: status = "On" chat = update.effective_chat msg = update.effective_message.text msg_id = update.effective_message.message_id if chat.type == "private": msg.reply_text("Nsfw in private is always on my dear..") return spl = msg.split(" ", 1) chek = sql.is_nsfw_false(chat.id) args = " " if len(spl) >= 2: args = spl[1] else: args = " " if args in SAYON: if chek == True: status = "On!!" return sql.set_true(chat.id) bot.send_message( chat_id=chat.id, text="Feelings intensifies as NSFW is enabled here!!", reply_to_message_id=msg_id) else: bot.send_message(chat_id=chat.id, text="Nyah! Nswf is already enabled!! ", reply_to_message_id=msg_id) elif args in SAYNO: if chek == True: status = "Off!!" bot.send_message(chat_id=chat.id, text="Nyah!! Its already disabled baka!!") return else: fal = sql.set_false(chat.id) bot.send_message( chat_id=chat.id, text="Feelings goin downhill as NSFW is disabled Mewow!!", reply_to_message_id=msg_id) else: bot.send_message( chat_id=chat.id, text= "BaKA gimme on/off to control Nsfw here!! At the moment Nsfw is {} here!!" .format(status), reply_to_message_id=msg_id)