File size: 4,849 Bytes
b3eb313 7ee59b3 b3eb313 48b88b6 7ee59b3 298347d b3eb313 8e8fa3c 48b88b6 b3eb313 48b88b6 4ac817e 48b88b6 b3eb313 7ee59b3 8e8fa3c 7ee59b3 4ac817e 8e8fa3c 4ac817e 8e8fa3c 4ac817e b3eb313 48b88b6 b3eb313 7ee59b3 b3eb313 48b88b6 b3eb313 7ee59b3 4ac817e 7ee59b3 8e8fa3c 7ee59b3 b3eb313 7ee59b3 8e8fa3c 7ee59b3 b3eb313 7ee59b3 48b88b6 7ee59b3 4ac817e 8e8fa3c 4ac817e 8e8fa3c 4ac817e 7ee59b3 4ac817e 8e8fa3c 4ac817e 8e8fa3c 8280922 4ac817e 7ee59b3 b3eb313 7ee59b3 b3eb313 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
import logging
import time
import os
from pyrogram import Client, filters
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
from pyrogram.types import *
import akenoai as ak
from config import API_KEY, API_ID, API_HASH, BOT_TOKEN
from scripts import progress
logging.getLogger("pyrogram").setLevel(logging.WARNING)
logging.basicConfig(level=logging.INFO)
WELCOME_TEXT = """
Hey! {first_name}
Saya adalah bot untuk mengunduh video PornoHub di telegram.
- Jangan share video ke group (mending private bot aman)
- Command: /hubsearch boobs
- Command: /hubdl link xnxx
Powered by @xtdevs
"""
USER_TRACK = """
β’ AkenoHUB
UserID: {user_id}
First Name: {first_name}
Username: @{username}
"""
USER_LOGS = """
β’ AkenoHUB
UserID: {user_id}
First Name: {first_name}
Username: @{username}
Text Log: {type_text}
"""
client = Client(
"AkenoHub",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN
)
api = ak.PornoHub(key=API_KEY)
@client.on_message(filters.command("start") & filters.private)
async def welcome_start(client: Client, message: Message):
keyboard = InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
text="π’ Channel",
url="https://t.me/RendyProjects"
)
]
]
)
await client.send_message(
-1002290885889,
USER_TRACK.format(
user_id=message.from_user.id if message.from_user else 0,
first_name=message.from_user.first_name,
username=message.from_user.username if message.from_user else None
)
)
await message.reply_text(
WELCOME_TEXT.format(
first_name=message.from_user.first_name
),
reply_markup=keyboard
)
@client.on_message(
filters.command(["hubsearch"])
& filters.private
& ~filters.forwarded
)
async def searchhub(client: Client, message: Message):
query = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
if not query:
return await message.reply_text("please search for pornohub.")
response = await api.x_search(query=query)
link = response[0]
try:
file_path, _, _, = await api.x_download(url=link, is_stream=True)
upload_text = f"**β¬οΈ π΄ππ
ππΊπ½πππ video ...**"
await pro.edit_text(upload_text)
await client.send_message(
-1002290885889,
USER_LOGS.format(
user_id=message.from_user.id if message.from_user else 0,
first_name=message.from_user.first_name,
username=message.from_user.username if message.from_user else None,
type_text=query
)
)
await message.reply_video(
file_path,
caption=f"β’ Powered by {client.me.mention}",
thumb=thumb,
has_spoiler=True,
progress=progress,
progress_args=(
pro,
time.time(),
upload_text
)
)
await pro.delete()
os.remove(thumb)
os.remove(file_path)
except Exception as e:
await pro.edit_text(str(e))
@client.on_message(
filters.command(["hubdl"])
& filters.private
& ~filters.forwarded
)
async def porno_download(client: Client, message: Message):
link = message.text.split(" ", 1)[1] if len(message.command) > 1 else None
if not link:
return await message.reply_text("please link for pornohub.")
if not link.startswith("https://www.xnxx.com/"):
return await message.reply_text("invalid link.")
try:
pro = await message.reply_text("Processing.....")
file_path, thumb, _ = await api.x_download(url=link, is_stream=True)
upload_text = f"**β¬οΈ π΄ππ
ππΊπ½πππ video ...**"
await pro.edit_text(upload_text)
await client.send_message(
-1002290885889,
USER_LOGS.format(
user_id=message.from_user.id if message.from_user else 0,
first_name=message.from_user.first_name,
username=message.from_user.username if message.from_user else None,
type_text=link
),
disable_web_page_preview=True
)
await message.reply_video(
file_path,
caption=f"β’ Powered by {client.me.mention}",
thumb=thumb,
has_spoiler=True,
progress=progress,
progress_args=(
pro,
time.time(),
upload_text
)
)
await pro.delete()
os.remove(thumb)
os.remove(file_path)
except Exception as e:
await pro.edit_text(str(e))
client.run() |