Skip to content
Discussion options

You must be logged in to vote

برای ارسال درخواست پول میتونین از طریق کد زیر اقدام نمایید
https://github.com/python-bale-bot/python-bale-bot/blob/master/examples/invoice.py

همچنین برای ارسال فایل صوتی هم میتونید از تکه کد زیر استفاده کنید

from bale import Bot, Message, InputFile

client = Bot("Your Token")

@client.event
async def on_ready():
    print(client.user, "is Ready!")
    
@client.event
async def on_message(message: Message):
    if message.content == "/audio":
        file = open('attachment.mp3', 'rb').read()
        audio = InputFile(file)
        return await message.reply_audio(audio=audio, caption="This is a simple audio")

client.run()

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ranch-hands
Comment options

@kian-ahmadian
Comment options

Answer selected by kian-ahmadian
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question ❓ Further information is requested persian People inside the issue speak in persian language
3 participants