vkontakte-api
Automatic receipt of the VKontakte authorization token in Python
I use the library:
Https://github.com/sgaynetdinov/py-vkontakte
Import vk
Api = vk.Api('YOUR_TOKEN')
Where a token is used fo ... om/blank.html#access_token=YYY&expires_in=86400&user_id=XXX
Please tell me how to automatically get a token in Python
Python VK API how do I get an image from a user and then send it to them?
I started to understand python, I try various functions of the vk-api. Now the bot accepts any message and sends only a certa ... msg = event.text.lower()
id = event.user_id
sender(msg)
send_photo('url картинки')
How do I get all messages from my account?
Here is the documentation of the vkontakte API: https://vk.com/dev
Please help me to cope with the task: using a script on th ... atus(authInfo);
VK.UI.button('login_button');
</script>
How can I get anything at all, for example, user messages?
OAuth2 vk.com
Good afternoon, I'm trying to get a token:
Https://oauth.vk.com/authorize?client_id=**&scope=4096&redirect_uri=local ... he link in the browser, the application on the local host, and it works fine in VK.
That's probably not the problem.
Thanks.
How do I get a conversation ID using the VK API?
I need to get the ID of a vk conversation in order to write to it from multiple pages. The trouble is that the conversation I ... each personal page. Is there a vk api method that allows you to determine the ID of a conversation by its name or otherwise?
How can I get the group ID from the URL via the VK API?
How can I get the group ID from its URL via the VK API?
The friends.areFriends method doesn't work (VK API)
<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?49"></script>
<script type=" ...
Does not work. They say error data.response.length; and document.write(data.response[i].uid);. Help me solve the problem.
Assign a VK conversation administrator via the API
How to assign and demote administrators in VK conversations via the API? In Kate Mobile, this is implemented only it is not clear how, I can not find a method
Processing messages in a VK conversation via the API
Created a test community. In the API settings, I created a key with all the rights. In the event settings, the Callback API h ... else
{
Logger::Log($request->rawcontent());
}
$response->end("ok");
}
}
VK API-Sending messages via the messages.send method()
In general, vk_api has a method messages.send()
That is, it sends messages.
I know how to use it only in groups, that is, t ...
Can I use it with my account somehow? That is, so that I log in to the most ordinary account, and send messages through it?
Connecting the vk-master library to a C++project
There is a ready-made skeleton of the project, I want to connect VK SDK for C++to it. I threw the vk-master folder into the p ... . The problem was not solved.
Already 4 days such a problem, google is not able to solve my problem. I hope for Forum users)
Error when sending a vk api message by the bot
When the bot sends a message to the user, it crashes with the error: vk_api.exceptions.ApiError: [901] Can't send messages fo ... ser_id=event.obj.from_id,
random_id=get_random_id(),
message=event.obj.text)
Python vk api error
I'm writing a python program for posting posts with an image to a Vk group. I use the vk_api library and requests.
Actually h ... ')}
ur=requests.post(upload_url,files=file)
print(ur)
At startup, it outputs
Response [200]
.
How can this be fixed?
node vk bot api, error in the function with binding to the global context
I'm writing a vk bot using the node vk bot api, I want to make a response function to a command, because there are four comma ... t into the api's vc. it seems that I specified the global context when calling the function, I don't know where and how now.
How to read wss: / / stream in php without libraries (streaming api vk)
The vk Streaming api allows you to receive events from all over the vk, and this is implemented via the wss: / / protocol.
A ... ($socket)) {
$context = fgets($socket, 1024);
print_r($context);
}
fclose($socket);
VK API uploading multiple photos to your wall
I have this code,it works with one photo,but how can I upload 5 photos at once?
I understand that logically it is necessary t ... t);
$image = 'images/test.jpg';
The name of the photo will be given by the vk_id of the user and then delete it.
Vk API PHP:How do I get a photo from a user?
Well, that is, I need, if the user sends a photo, then the bot will download it, and save it, how to implement this?
You need to put a timer on the Vkontakte bot. The bot is written in Python
I need to add a timer to the bot, so that the "TK" command can be executed 1 time in 30 minutes.
Example:
I) Tz
Bot) here ... id,
random_id=event.random_id,
message='Я вас не понимаю.\nНапишите «ТЗ»'
)
Why does the bot in the VK not respond
It was necessary to rewrite the bot in the VK. I started writing code, it does not give errors, but the bot does not respond ... рядке.", "random_id": random.randint(1, 2147483647)})
except Exception as E:
time.sleep(1)```
How do I get an avatar of a certain vk user in php?
In general, I have a blog in php, but in the api vkontakte I get lost, so I ask here.
How do I get my personal avatar and sta ... that when you change them in Vkontakte, they also change on the blog. I think many bloggers are interested in how to do this.