#curious about how to edit a message after its already been sent,

1 messages · Page 1 of 1 (latest)

icy star
north nicheBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

candid frigate
#

are you uploading a local image online just to get the URL to send in a message?

#

Do you know that you can send the image directly in your message

icy star
#

im aware, its uploaded for a reason

candid frigate
#

ok ok

icy star
#

future plans ™️

candid frigate
#

well it should just be msg.edit, as in your code

icy star
#

ah alright, then i seem to be having a small brain moment because im getting heart beat errors

candid frigate
#

yes this is due to you using requests module, which is blocking the lib since it's not asynchronous code

#

switch it to aiohttp library, very similar

icy star
#

aiohttp?

#

alright

candid frigate
#

same for your Client class, Idk what it is but since it's not async it might block your code

icy star
#

thank u, ill see if it works,

#

oh wow

#

aiohttp lib is actually

#

mm

#

thanks

#

ill test it now

#

oh wow

#

it works

#

thank u so much,

candid frigate
#

np!