6 503
Subscribers
No data24 hours
-197 days
-15130 days
Posts Archive
6 503
شباب مين عنده نقاط بوت رشق عرب بدل نقاط بوت دعمكم ؟احتاج كمية تبع 2ك
بالنسبة للبوت بالليل ينزل شرح عليه كونو جاهزين 🤩🙋
6 503
شنو الخدمات لي تريدونها ؟ ( تخص رشق مواقع تواصل اجتماعي )
رشق انستا لاكيات و متابعين و شنو غير
أكتبو بتعليقات حتي نعمل عليها 🙋❤️🔥📦 و نضيفها بل بوت باجر
6 503
مثال عبوت بهذا ال api
import requests
from pyrogram import Client, filters
import os
from pydub import AudioSegment
api_id = 123456
api_hash = 'your_api_hash'
bot_token = your_bot_token'
app = Client('my_bot', api_id=api_id, api_hash=api_hash, bot_token=bot_token)
@app.on_message(filters.voice)
def convert_voice_to_text(client, message):
voice_file = client.download_media(message.voice.file_id)
wav_file = f'output_{message.message_id}.wav'
audio = AudioSegment.from_file(voice_file, format='ogg')
audio.export(wav_file, format='wav')
url = 'http://206.189.60.156/chat-ai'
files = {'voice': open(wav_file, 'rb')}
response = requests.post(url, files=files)
text = response.text
audio_url = response.json()["url"]
audio_file = 'output.ogg'
audio_response = requests.get(audio_url)
with open(audio_file, 'wb') as f:
f.write(audio_response.content)
message.reply_voice(wav_file)
os.remove(voice_file)
os.remove(audio_file)
os.remove(wav_file)
app.run()
ما جربته جربوه انتم
6 503
مثال عبوت بهذا ال api
import requests
from pyrogram import Client, filters
import os
from pydub import AudioSegment
api_id = 17954744
api_hash = '7ad6189ad04c5d3a698b1b541e62c42b'
bot_token = '6171785120:AAH-xo5j2N6XA5DDmAxL0tdx1HOQu6Keg4I'
app = Client('my_bot', api_id=api_id, api_hash=api_hash, bot_token=bot_token)
@app.on_message(filters.voice)
def convert_voice_to_text(client, message):
voice_file = client.download_media(message.voice.file_id)
wav_file = f'output_{message.message_id}.wav'
audio = AudioSegment.from_file(voice_file, format='ogg')
audio.export(wav_file, format='wav')
url = 'http://206.189.60.156/chat-ai'
files = {'voice': open(wav_file, 'rb')}
response = requests.post(url, files=files)
text = response.text
audio_url = response.json().get('url')
audio_file = 'output.ogg'
audio_response = requests.get(audio_url)
with open(audio_file, 'wb') as f:
f.write(audio_response.content)
message.reply_voice(wav_file)
os.remove(voice_file)
os.remove(audio_file)
os.remove(wav_file)
app.run()
ما جربته جربوه انتم
6 503
مثال عبوت بهذا ال api
import requests
from pyrogram import Client, filters
import os
from pydub import AudioSegment
api_id = 17954744
api_hash = '7ad6189ad04c5d3a698b1b541e62c42b'
bot_token = '6171785120:AAH-xo5j2N6XA5DDmAxL0tdx1HOQu6Keg4I'
app = Client('my_bot', api_id=api_id, api_hash=api_hash, bot_token=bot_token)
@app.on_message(filters.voice)
def convert_voice_to_text(client, message):
voice_file = client.download_media(message.voice.file_id)
wav_file = f'output_{message.message_id}.wav'
audio = AudioSegment.from_file(voice_file, format='ogg')
audio.export(wav_file, format='wav')
url = 'http://206.189.60.156/chat-ai'
files = {'voice': open(wav_file, 'rb')}
response = requests.post(url, files=files)
text = response.text
audio_url = response.json().get('url')
audio_file = 'output.ogg'
audio_response = requests.get(audio_url)
with open(audio_file, 'wb') as f:
f.write(audio_response.content)
message.reply_voice(wav_file)
os.remove(voice_file)
os.remove(audio_file)
os.remove(wav_file)
app.run()
ما جربته جربوه انتم
