T
T
Toxic-cloud2019-06-04 23:47:27
Python
Toxic-cloud, 2019-06-04 23:47:27

How can I do this?

I want to make an application like this:

Launching the application
Enter a message: input
Message is encoded
Sending an encoded message to a VK conversation
Another person with the same application receives messages
Decoding
Displaying a message

I'm stuck at the place of sending a message to VK, here is such a question, either tell me some service with which you can implement this, or tell me how to write a message - receive a message in VK.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Toxic-cloud, 2019-06-06
@Toxic-cloud

I already solved this issue:

import vk
token="токен из Kate Mobile!"
session = vk.Session(access_token = token)
api = vk.API(session, v = "5.95")

And now you can enter
api.(metod)
Example:
api.messages.send(arguments)

G
GavriKos, 2019-06-04
@GavriKos

Have you already looked at VK API?

C
CityCat4, 2019-06-05
@CityCat4

How are you going to change keys?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question