B
B
Bergis2019-07-21 17:43:09
Python
Bergis, 2019-07-21 17:43:09

How to send a message to vk through requests?

Tried to do so

import lxml.html
import requests
  
  
headers = {
    'act':'a_send',
    'al': '1',
    'entrypoint':'',
    'gid':'0',
    'guid':'',
    'hash':'',
    'im_v':'2',
    'media':'',
    'msg':'223',
    'random_id':'',
    'to':''
}


    

r = requests.get("https://vk.com", params=headers)
print(r)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lightmanLP, 2019-07-21
@Bergis

try using vk api.
vk.com/dev

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question