を使用して音声を送信しようとしていますpyrogram
:
from pyrogram import Client as bot
await bot.send_audio(
chat_id=from_uid,
audio=path+'/'+file,
caption=f"`{file}`",
duration=duration,
reply_to_message_id=user_msg.message.reply_to_message.message_id,
# performer=response_json["uploader"],
# title=response_json["title"],
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton('⚙ Join Updates Channel ⚙', url='https://telegram.me/FayasNoushad')]]),
progress=progress_for_pyrogram,
progress_args=(
Translation.UPLOAD_START,
user_msg,
start_time
)
)
ただし、次のエラーが表示されます。
TypeError: send_audio() missing 1 required positional argument: 'self'