Function deltachat::chat::get_chat_media

source ·
pub async fn get_chat_media(
    context: &Context,
    chat_id: Option<ChatId>,
    msg_type: Viewtype,
    msg_type2: Viewtype,
    msg_type3: Viewtype
) -> Result<Vec<MsgId>>
Expand description

Returns all database message IDs of the given types.

If chat_id is None, return messages from any chat.

Viewtype::Unknown can be used for msg_type2 and msg_type3 if less than 3 viewtypes are requested.