CreateStickerSet

---functions---
stickers.createStickerSet#9021ab67 masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet

Returns

messages.StickerSet

Parameters

maskstrueoptional
emojistrueoptional
text_colortrueoptional
user_idInputUserrequired
titlestringrequired
short_namestringrequired
thumbInputDocumentoptional
stickersVector<InputStickerSetItem>required
softwarestringoptional

Example

Replace placeholder values with real data before running.

use ferogram::tl::functions;
use ferogram::tl::enums;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let (client, _) = ferogram::Client::quick_connect(
        "my.session",
        12345,
        "0123456789abcdef0123456789abcdef",
    )
    .await?;

    let result = client
        .invoke(
        &functions::stickers::CreateStickerSet {
            masks: false,
            emojis: false,
            text_color: false,
            user_id: enums::InputUser::Empty,
            title: "My title".to_string(),
            short_name: "".to_string(),
            thumb: None,
            stickers: vec![],
            software: None,
        },
        )
        .await?;

    println!("{result:?}");
    Ok(())
}
use ferogram::tl::functions;
use ferogram::update::Update;
use ferogram::tl::enums;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let (client, _) = ferogram::Client::quick_connect(
        "my.session",
        12345,
        "0123456789abcdef0123456789abcdef",
    )
    .await?;

    let mut stream = client.stream_updates();
    while let Some(upd) = stream.next().await {
        if let Update::NewMessage(_msg) = upd {
            let result = client
                .invoke(
            &functions::stickers::CreateStickerSet {
                masks: false,
                emojis: false,
                text_color: false,
                user_id: enums::InputUser::Empty,
                title: "My title".to_string(),
                short_name: "".to_string(),
                thumb: None,
                stickers: vec![],
                software: None,
            },
                )
                .await?;
            println!("{result:?}");
        }
    }
    Ok(())
}