tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

how to query post in channel? #2565

Closed xspeed1989 closed 1 year ago

xspeed1989 commented 1 year ago

auto getChatHistory = td_api::make_object( chat_id, 0, -3, -3, false); send_query(std::move(getChatHistory), callback);

it return zero count message

levlam commented 1 year ago

What post do you want to get? All new posts in channels are received through the update updateNewMessage, there is no need to manually fetch them.