libsignal_service/push_service/
stickers.rs

1use super::{PushService, ServiceError};
2
3impl PushService {
4    pub async fn get_sticker_pack_manifest(
5        &mut self,
6        id: &str,
7    ) -> Result<impl futures::io::AsyncRead + Send + Unpin, ServiceError> {
8        let path = format!("/stickers/{}/manifest.proto", id);
9        self.get_from_cdn(0, &path).await
10    }
11
12    pub async fn get_sticker(
13        &mut self,
14        pack_id: &str,
15        sticker_id: u32,
16    ) -> Result<impl futures::io::AsyncRead + Send + Unpin, ServiceError> {
17        let path = format!("/stickers/{}/full/{}", pack_id, sticker_id);
18        self.get_from_cdn(0, &path).await
19    }
20}