How to attach an image to a message?

  • one
    What happened so far? - 0xdb

1 answer 1

The documentation is all black and white. The message.send method, the attachment parameter. An example looks like this: https://api.vk.com/method/message.send?user_id= **** & attachment = photo *** _ *** & v = 5.52 user_id can be replaced by peer_id, chat_id, user_ids (depending on the purpose of the message). attachment is a media attachment parameter. Type of the given parameter: arrachment = _. Allegorically: - type of media attachment (photo, video, audio, doc, wall, market), - ID of the media attachment, - ID of the media attachment.