Skip to main content

summarize_message

Function summarize_message 

Source
pub async fn summarize_message(
    chat_id: i64,
    message_id: i64,
    translate_to_language_code: String,
    client_id: i32,
) -> Result<FormattedText, Error>
Expand description

Summarizes content of the message with non-empty summary_language_code

§Arguments

  • chat_id - Identifier of the chat to which the message belongs
  • message_id - Identifier of the message
  • translate_to_language_code - Pass a language code to which the summary will be translated; may be empty if translation isn’t needed. See translateText.to_language_code for the list of supported values
  • client_id - The client id to send the request to