-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: function to crawl replies (comments) to each post of channel? #49
Comments
Hi,
However, I'd imagine another command to get the replies for a list of posts (comparable to the |
Hi @vicru, upon further investigation I found that Telegram indeed gives the count of replies in the field you mentioned, e.g.: {
"id": 123,
"replies": {
"_": "MessageReplies",
"replies": 3,
...
},
...
} The above mentioned API-method can give you the replies, however, if you already crawled the channel history you should have the replies on your system! Replies are marked by Telegram in the following way: replying to a post creates another post for the channel, thus, increasing the post count. Thus, that new posts very much looks like a regular posts. However, it has a field called {
"id": 124, # new message
"reply_to": {
"_": "MessageReplyHeader",
"reply_to_msg_id": 123, # referenced post id
"reply_to_scheduled": false,
"reply_to_peer_id": null,
"reply_to_top_id": null
},
...
} I think the already existing functionality of |
Can this be closed then? |
Thanks a lot for the quick reply! Yup, |
You're welcome. As I was stating above the replies are not delivered as markup for a specific channel post (as I understand you are expecting them to be) but rather as references between channel posts. Hence, in the above example channel post 124 is a reply to post 123. If you inspect the data you have, you might see that each of these replies may originate from different accounts. References to the posting accounts are found in the Btw, all of this is not related to how tegracli captures the data from the Telegram API but rather the Telegram API's data structure. |
Hi, is there a function built in
tegracli
to crawl not only the text of posts of a channel (tegracli
does a great job in this respect) but actually to crawl all replies (comments) to each post of a telegram-channel?tegracli
yields the number of replies to a post (in the variable calledreplies
). I have not found a way to actually crawl the text of those individual replies.Thanks in advance for any insights.
The text was updated successfully, but these errors were encountered: