Answer the question
In order to leave comments, you need to log in
How to work with appWidgets.update method in python?
Hello! I am writing a chat bot in python and I can’t deal with the above vk api method. I did not find documentation about this method or examples of application in python, so I decided to ask you. Here is my code:
vk3 = vk_api.VkApi(token="токен")
vk3.get_api()
vk3.method("appWidgets.update", {"type" : "table", "code":{
"title": "Лучшие подписчики!",
"title_url": "ссылка на мою группу",
"head": [
{
"text": "Имя"
},
{
"text": "Коллиество",
"align": "right"
}
],
"body": [
[
{
"icon_id": "id242306128",
"text": "Александр Бульбенков",
"url": "vk.com/id242306128"
},
{
"text": "Содержимое 1x2"
}
],
[
{
"icon_id": "id242306128",
"text": "Александр Бульбенков",
"url": "vk.com/id242306128"
},
{
"text": "Содержимое 1x2"
}
],
[
{
"icon_id": "id242306128",
"text": "Александр Бульбенков",
"url": "vk.com/id242306128"
},
{
"text": "Содержимое 1x2"
}
]
],
"more": "Подробнее",
"more_url": "https://vk.com/write-АЙДИ_ГРУППЫ"
}})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question