6 886
Suscriptores
Sin datos24 horas
-1887 días
-74430 días
Archivo de publicaciones
6 886
شرح برمجه اداه سحب معلومات تيك
url: -
f'https://www.tikwm.com/api/user/info?unique_id={username}'راح انزل جزء ثاني @XEF_R
6 886
import telebot,requests
from telebot.types import InlineKeyboardMarkup,InlineKeyboardButton,InputMediaPhoto
from concurrent.futures import ThreadPoolExecutor
SeedReam="https://sii3.top/api/SeedReam-4.php" # API
T=telebot.TeleBot("toke_here") # Token
user_photos={}
user_action={}
def send_request(t,l=[]):return requests.post(SeedReam,data={"text":t,"links":",".join(l)}).json().get("image")
def darkai():T.polling()
@T.message_handler(commands=['start'])
def start_cmd(m):
uid=m.from_user.id
markup=InlineKeyboardMarkup(row_width=2)
markup.add(InlineKeyboardButton("Create Image",callback_data="create_img"),InlineKeyboardButton("Edit Image",callback_data="edit_img"))
T.send_message(uid,"Welcome! im SeedReam 4.0 your AI for image create + edit 🫧",reply_markup=markup)
@T.callback_query_handler(func=lambda c:c.data in ["create_img","edit_img"])
def action_select(c):
user_action[c.from_user.id]=c.data
text="Send image description" if c.data=="create_img" else "Send image (max 10)"
try:T.edit_message_text(text, c.message.chat.id, c.message.message_id)
except:pass
try:T.edit_message_reply_markup(c.message.chat.id, c.message.message_id, reply_markup=None)
except:pass
@T.message_handler(content_types=['photo'])
def handle_photos(m):
uid=m.from_user.id
if user_action.get(uid)!="edit_img":return
user_photos.setdefault(uid,[]).append(m.photo[-1].file_id)
if len(user_photos[uid])>4:user_photos[uid]=user_photos[uid][:4]
if len(user_photos[uid])==1:T.send_message(uid,"Send edit description")
@T.message_handler(func=lambda m:True)
def handle_description(m):
uid=m.from_user.id
action=user_action.get(uid)
if action=="edit_img" and uid in user_photos and user_photos[uid]:
wait_st=T.send_sticker(uid,"CAACAgIAAxkBAAIMcmjDndyMvCb2OBQhIGobGVZU4f6JAAK0IwACmEspSN65vs0qW-TZNgQ")
desc=m.text
links=[f"https://api.telegram.org/file/bot{T.token}/{T.get_file(fid).file_path}" for fid in user_photos[uid]]
cap=(desc[:1021]+"...") if len(desc)>1024 else desc
with ThreadPoolExecutor() as e:results=list(e.map(lambda _:send_request(desc,links),range(2)))
media=[]
for i,u in enumerate(results):
if not u:continue
if i==0:media.append(InputMediaPhoto(media=u,caption=f"<b><blockquote>{cap}</blockquote></b>",parse_mode="HTML",has_spoiler=True))
else:media.append(InputMediaPhoto(media=u,has_spoiler=True))
if media:T.send_media_group(uid,media)
try:T.delete_message(uid,wait_st.message_id)
except:pass
user_photos[uid]=[]
user_action.pop(uid,None)
elif action=="create_img":
wait_st=T.send_sticker(uid,"CAACAgIAAxkBAAIMcmjDndyMvCb2OBQhIGobGVZU4f6JAAK0IwACmEspSN65vs0qW-TZNgQ")
desc=m.text
cap=(desc[:1021]+"...") if len(desc)>1024 else desc
with ThreadPoolExecutor() as e:results=list(e.map(lambda _:send_request(desc),range(2)))
media=[]
for i,u in enumerate(results):
if not u:continue
if i==0:media.append(InputMediaPhoto(media=u,caption=f"<b><blockquote>{cap}</blockquote></b>",parse_mode="HTML",has_spoiler=True))
else:media.append(InputMediaPhoto(media=u,has_spoiler=True))
if media:T.send_media_group(uid,media)
try:T.delete_message(uid,wait_st.message_id)
except:pass
user_action.pop(uid,None)
darkai()
بوت تيليجرام إنشاء + تعديل الصور باستخدام النموذج: "SeedReam 4.0" 🌺
واجهة برمجة التطبيقات: T.me/DarkAIx/580 🚗6 886
مرحباً أصدقائي 👋
هل تذكرون واجهة برمجة التطبيقات الخاصة بترقية جودة الصور؟ ⌛
لقد أحضرت لكم خدمة أقوى تدعم تكبير بدقة عالية حتى 6x + 4x + 2x، وكل مستوى تكبير يستغرق وقتاً أطول 🔗
إن أردتم يمكنني أن أجعلها تعمل على 2x + 4x أو فقط 2x، لأن تكبير 6x يستغرق قرابة 12 دقيقة، أما 4x فلم أختبر بعد المدة التي يحتاجها، لكن جربت 2x واستغرق حوالي 36 ثانية وكان قوياً 🔜
الحل الذي تحتاجون فعلاً إلى التفكير فيه هو أن تعلموا أن كلما ارتفعت الجودة زاد وقت المعالجة 🖥
6 886
Hey Friends 🎁
The domain will be changed shortly Please update the API links in your projects ⚠️
⚪From : sii3.moayman.top
⚪To : sii3.top
6 886
🍃 A new API has been released for SeedReam-4 image generation and edit 😎🎨
seedream-4.0⚪ To edit image: 🔴 Example via GET:
https://sii3.moayman.top/api/SeedReam-4.php?text=Merge+the+photos&links=link1,link2,link3,link4🔴 Example via POST:
curl -X POST "https://sii3.moayman.top/api/SeedReam-4.php" \
--data-urlencode "text=Make the photo more cinematic with neon lights" \
--data-urlencode "links=link1,link2,link3,link4"
add links of images (max 4)🎁 The API is supports editing up to 4 images in one request ⚪ To create image: 🔴 Example via GET:
https://sii3.moayman.top/api/SeedReam-4.php?text=Billie_Eilish🔴 Example via POST:
curl -X POST "https://sii3.moayman.top/api/SeedReam-4.php" \
--data-urlencode "text=Create a 3D SeedReam 4.0 logo image and place a small icon on the bottom right of the Telegram icon image next to the word channel: @darkaix"
⚪ owner: @sii_3
⚪ support: @zDarkAI
⚪ channel: @DarkAIx
⚪ boost: T.me/boost/DarkAIx