async def ph_comment(message: Message): """ Create P*rnhub Comment for Replied User """ replied = message.reply_to_message if replied: user = replied.forward_from or replied.from_user if "," in message.input_str: u_name, msg_text = message.input_str.split(",", 1) name = u_name.strip() comment = msg_text or replied.text else: if user.last_name: name = user.first_name + " " + user.last_name else: name = user.first_name comment = message.input_str or replied.text else: await message.err("```Input not found!...```", del_in=3) return await message.delete() await message.edit("```Creating A PH Comment 😜```", del_in=1) comment = deEmojify(comment) if user.photo: pfp_photo = user.photo.small_file_id file_name = os.path.join(Config.DOWN_PATH, "profile_pic.jpg") picture = await message.client.download_media(pfp_photo, file_name=file_name) loc_f = upload_image(picture) os.remove(picture) else: loc_f = "https://telegra.ph/file/9844536dbba404c227181.jpg" path = await phcomment(loc_f, comment, name) if path == "ERROR": return await message.edit("😔 Something Wrong see Help!", del_in=2) chat_id = message.chat.id await message.delete() await message.client.send_photo(chat_id=chat_id, photo=path, reply_to_message_id=replied.message_id)
async def anime_Scene(message: Message): """ Creates random anime Cut Scene! """ monika_faces = [x for x in "abcdefghijklmnopqr"] natsuki_faces = [x for x in "abcdefghijklmnopqrstuvwxyz"] natsuki_faces.extend([ "1t", "2bt", "2bta", "2btb", "2btc", "2btd", "2bte", "2btf", "2btg", "2bth", "2bti", "2t", "2ta", "2tb", "2tc", "2td", "2te", "2tf", "2tg", "2th", "2ti" ]) sayori_faces = [x for x in "abcdefghijklmnopqrstuvwxy"] yuri_faces = [x for x in "abcdefghijklmnopqrstuvwx"] background = [ "bedroom", "class", "closet", "club", "corridor", "house", "kitchen", "residential", "sayori_bedroom" ] ddlc_items = { "body": { "monika": ["1", "2"], "natsuki": ["1b", "1", "2b", "2"], "yuri": ["1b", "1", "2b", "2"], "sayori": ["1b", "1", "2b", "2"] }, "face": { "monika": monika_faces, "natsuki": natsuki_faces, "yuri": yuri_faces, "sayori": sayori_faces } } ddlc_char = ["yuri", "natsuki", "monika", "sayori"] replied = message.reply_to_message args = message.filtered_input_str if args: text = args elif replied: text = args or replied.text else: await message.err("`Input not found!...`", del_in=5) return await message.delete() if '-y' in message.flags: character = "yuri" if '-n' in message.flags: character = "natsuki" if '-m' in message.flags: character = "monika" elif '-s' in message.flags: character = "sayori" else: character = rand_array(ddlc_char) body = ddlc_items["body"][character] rando_body = rand_array(body) face = ddlc_items["face"][character] rando_face = rand_array(face) rand_background = rand_array(background) text = str(deEmojify(text)) path = await ddlc(character, rando_face, rando_body, rand_background, text) if path == "ERROR": return await message.edit("😔 Something Wrong see Help!", del_in=2) chat_id = message.chat.id message_id = replied.message_id if replied else None await message.delete() await message.client.send_photo(chat_id=chat_id, photo=path, reply_to_message_id=message_id)