Skip to content

Files below 500mb wont send, even if the account has discord nitro boost #722

Answered by MCausc78
httpssilver asked this question in Help
Discussion options

You must be logged in to vote

Use https://discordpy-self.readthedocs.io/en/latest/api.html#discord.abc.Messageable.upload_files to upload them to Discord GCP bucket and pass them into Messageable.send.

import io

data = b'suppose this is large binary file'

file = await channel.upload_files(discord.File(io.BytesIO(fp), filename='something.exe'))
await channel.send('Here is some file:', file=file)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dolfies
Comment options

@httpssilver
Comment options

@httpssilver
Comment options

@MCausc78
Comment options

@httpssilver
Comment options

Answer selected by dolfies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants