ITDpy
{
"data": {
"comments": [
{
1 коммент
},
"attachments": [],
"replies": [
{
ответы
}
]
},
{
2 коммент
},
"attachments": [],
"replies": [
ответы
]
}
],
"pagination": {
"limit": 20,
"hasMore": false
}
}
}
| Поле |
Тип |
| data.comments |
list[Comment] |
| data.pagination |
Pagination |
Пример использования
comments = client.get_comments(post_id="6f14ee05-e0c5-4133-8f42-aca16bde154c")
for comment in comments:
print(comment.content)
for reply in comment.replies:
print(" Автор: ", reply.author.display_name)
print(" Ответ:", reply.content)
← Назад к документации