6 886
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-1887 روز
-74430 روز
آرشیو پست ها
6 886
AI Support ⭐️
A specialized helpbot to assist users with your services ⚡️✨ All you have to do is: 1. Edit your data config.py 2. Edit your data prompt.md
The assistant is advanced capable of making decisions interacting with users and remembering the entire conversation
He can also send notifications to human support or the owner he decides everything on his own⚪️ owner: @sii_3 ⚪️ support: @zDarkAI ⚪️ channel: @DarkAIx ⚪️ boost: T.me/boost/DarkAIx
6 886
هذا دعم حقيقي مش يلي اقصد بدكم سورسه
يلي اقصده عبارة عن بوت دعم عبر AI وياخذ قرارات ويعطي
6 886
Text-to-speech bot with distinctive and organized formats:
import telebot
import requests
from io import BytesIO
dark = telebot.TeleBot("Token-Here") # Token $
voice = "Cantonese_ProfessionalHost(F)" # virtual sound
U = {}
@dark.message_handler(func=lambda m: True)
def handle_text(message):
user_text = message.text.strip()
chat_id = message.chat.id
if user_text.lower().startswith("voice "):
parts = user_text.split(maxsplit=1)
if len(parts) == 2:
voice_id = parts[1].strip()
U[chat_id] = voice_id
dark.reply_to(message, f'✅- <b>{voice_id}</b>', parse_mode='HTML')
return
else:
dark.reply_to(message, 'voice <voice-id>\n<a href="https://sii3.top/api/voice-human.json"><b>Click here</b></a>', parse_mode='HTML')
return
voice_id = U.get(chat_id, voice)
text_to_convert = user_text
sent_sticker = dark.send_sticker(chat_id, "CAACAgIAAxkBAAIMcmjDndyMvCb2OBQhIGobGVZU4f6JAAK0IwACmEspSN65vs0qW-TZNgQ") # Waiting sticker
try:
response = requests.post(
"https://sii3.top/api/voice-human.php", # API
data={"text": text_to_convert, "voice_id": voice_id},
timeout=None
)
if response.status_code == 200:
result = response.json()
audio_url = result.get("voice", {}).get("url")
if audio_url:
audio_response = requests.get(audio_url, timeout=None)
audio_file = BytesIO(audio_response.content)
words = text_to_convert.split()
filename = "_".join(words[:2]) if len(words) >= 2 else "_".join(words)
audio_file.name = f"{filename}.mp3"
thumb_response = requests.get("https://sii3.top/darkai.png", timeout=None) # iMage Voice File
thumb_file = BytesIO(thumb_response.content)
thumb_file.name = "thumb.png"
dark.send_chat_action(chat_id, "upload_audio")
dark.send_audio(
chat_id,
audio_file,
title=filename,
performer="DarkAI", # Name Author
thumb=thumb_file
)
else:
dark.reply_to(message, "nothing")
else:
dark.reply_to(message, f"{response.status_code}")
except Exception as e:
dark.reply_to(message, f"{e}")
finally:
dark.delete_message(chat_id, sent_sticker.message_id)
dark.polling()
Choose The Author Name:
# performer="DarkAI",
Link Cover iMage:
# thumb_response = requests.get("https://sii3.top/darkai.png", timeout=None)
Waiting Sticker Before Transfer:
# sent_sticker = dark.send_sticker(chat_id, "CAACA****$")
Token:
# dark = telebot.TeleBot("Token-Here")
Select Voice:
# "voice ~ $id"Virtual Sound:
# voice = "Cantonese_ProfessionalHost(F)"
Good night 👋6 886
Text-to-speech bot with distinctive and organized formats:
import telebot
import requests
from io import BytesIO
dark = telebot.TeleBot("Token-Here") # Token $
voice = "Cantonese_ProfessionalHost(F)" # virtual sound
U = {}
@dark.message_handler(func=lambda m: True)
def handle_text(message):
user_text = message.text.strip()
chat_id = message.chat.id
if user_text.lower().startswith("voice "):
parts = user_text.split(maxsplit=1)
if len(parts) == 2:
voice_id = parts[1].strip()
U[chat_id] = voice_id
dark.reply_to(message, f'✅- <b>{voice_id}</b>', parse_mode='HTML')
return
else:
dark.reply_to(message, 'voice <voice-id>\n<a href="https://sii3.top/api/voice-human.json"><b>Click here</b></a>', parse_mode='HTML')
return
voice_id = U.get(chat_id, voice)
text_to_convert = user_text
sent_sticker = dark.send_sticker(chat_id, "CAACAgIAAxkBAAIMcmjDndyMvCb2OBQhIGobGVZU4f6JAAK0IwACmEspSN65vs0qW-TZNgQ") # Waiting sticker
try:
response = requests.post(
"https://sii3.top/api/voice-human.php", # API
data={"text": text_to_convert, "voice_id": voice_id},
timeout=None
)
if response.status_code == 200:
result = response.json()
audio_url = result.get("voice", {}).get("url")
if audio_url:
audio_response = requests.get(audio_url, timeout=None)
audio_file = BytesIO(audio_response.content)
words = text_to_convert.split()
filename = "_".join(words[:2]) if len(words) >= 2 else "_".join(words)
audio_file.name = f"{filename}.mp3"
thumb_response = requests.get("https://sii3.top/darkai.png", timeout=None) # iMage Voice File
thumb_file = BytesIO(thumb_response.content)
thumb_file.name = "thumb.png"
dark.send_chat_action(chat_id, "upload_audio")
dark.send_audio(
chat_id,
audio_file,
title=filename,
performer="DarkAI", # Name Author
thumb=thumb_file
)
else:
dark.reply_to(message, "nothing")
else:
dark.reply_to(message, f"{response.status_code}")
except Exception as e:
dark.reply_to(message, f"{e}")
finally:
dark.delete_message(chat_id, sent_sticker.message_id)
dark.polling()
Choose The Author Name:
# performer="DarkAI", # Name Author
Link Cover iMage:
# thumb_response = requests.get("https://sii3.top/darkai.png", timeout=None) # iMage Voice File
Waiting Sticker Before Transfer:
# sent_sticker = dark.send_sticker(chat_id, "CAACA****$") # Waiting sticker
Token:
# dark = telebot.TeleBot("Token-Here") # Token $
Select Voice:
# "voice ~ $id"Virtual Sound:
# voice = "Cantonese_ProfessionalHost(F)" # virtual sound
Good night 👋