Function get_forum_topics

Source
pub async fn get_forum_topics(
    chat_id: i64,
    query: String,
    offset_date: i32,
    offset_message_id: i64,
    offset_message_thread_id: i64,
    limit: i32,
    client_id: i32,
) -> Result<ForumTopics, Error>
Expand description

Returns found forum topics in a forum chat. This is a temporary method for getting information about topic list from the server

§Arguments

  • chat_id - Identifier of the forum chat
  • query - Query to search for in the forum topic’s name
  • offset_date - The date starting from which the results need to be fetched. Use 0 or any date in the future to get results from the last topic
  • offset_message_id - The message identifier of the last message in the last found topic, or 0 for the first request
  • offset_message_thread_id - The message thread identifier of the last found topic, or 0 for the first request
  • limit - The maximum number of forum topics to be returned; up to 100. For optimal performance, the number of returned forum topics is chosen by TDLib and can be smaller than the specified limit
  • client_id - The client id to send the request to