Answer the question
In order to leave comments, you need to log in
VK API does not allow changing the status?
I need to change the status on the account
, let's go straight to the question
, I tried a lot of how to write, I even wrote some kind of gag and I did
n’t look for it on the Internet, everywhere the same principle
and even it doesn’t work
, the code itself
gives me an error:
TypeError : __call__() takes 1 positional argument but 3 were given
I don’t understand what arguments I’m talking about, I changed the code a lot, I’ll repeat (I tried to give it text as a single argument, just taking it in quotes and brackets)
but it still doesn’t work , and constantly repeats only about some arguments of which he has a lot
vk.method("status.set", {"text": info})
what could be the problem then? (I was on vk for developers, there is no code example, on vk github I found it only for c, on other sites the code from above is almost the same everywhere, except for the text itself in the status)
Answer the question
In order to leave comments, you need to log in
I apologize in advance to two people from above for wasting their time. I
remembered one phrase: "who doesn't want - looks for a reason, who wants - looks for a way
"
Here is the answer:
session = vk_api.VkApi(token = token)
vk = session.get_api()
def startStatus():
statusOut = vk.status.set(text = "ваш текст сюда")
while True:
startStatus()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question