6
6
6yntar052020-05-21 07:22:55
API
6yntar05, 2020-05-21 07:22:55

VK API. How to make a native gif from a link?

Hello, I explain crookedly!
I get the link to the GIF through tensor. Bot VK on python .

vk.messages.send(peer_id = event.peer_id,random_id = 0,reply_to = event.message_id,message = GIF)

The link is still sent as a message, this does not quite suit me, how to make the link immediately "turn" into a native GIF , as if loaded. There is nothing in the documentation.

If you manually copy the link and hold it in the chat for a while, the gif still appears.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2020-05-21
@iiiBird

the link will not work that way. in VK, any files need to be loaded via api.
in your case it's
https://vk.com/dev/upload_files?f=4.%2B%D0%97%D0%B...
or it's
https://vk.com/dev/upload_files_2?f=10 .%2B%D0%97%D...
don't remember gif refers to documents or can be through photo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question