Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- from vkbottle import API
- api = API("токен")
- async def handler():
- friends = await api.friends.get()
- for friend in friends.items:
- user = await api.users.get(friend)
- status = await api.status.get(friend)
- print(f"{user[0].first_name} {user[0].last_name} | {status.text}")
- asyncio.run(handler())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement