vaegram 0.2.0

Telegram MTProto client library for users and bots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::Client;
use crate::errors::Result;
use crate::raw::functions;
use crate::types::{Sticker, StickerSet};

impl Client {
    /// Removes a sticker from its set and returns the updated [`StickerSet`].
    pub async fn delete_sticker_from_set(&self, sticker: &Sticker) -> Result<StickerSet> {
        let request = functions::stickers::RemoveStickerFromSet { sticker: sticker.input_document() };
        StickerSet::parse(self.invoke(&request).await?)
    }
}