Answer the question
In order to leave comments, you need to log in
TypeError: list indices must be integers or slices, not str, what's the problem?
import vk_api
session = vk_api.VkApi(token=тут был токен')
vk = session.get_api()
GROUP = '198174344'
USERID = '198174344'
status= session.method('status.get', {'group_id': USERID})
print(status['text'])
admins = session.method('groups.getById', {'group_id': GROUP,'fields': 'contacts'})
print('')
print(admins["contacts"])
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