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

The examples below use placeholder values. Replace them with real data before running the code.

Minimal
import asyncio
from ferogram import Client, raw

app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")

async def main():
    await app.start()
    result = await app.raw.stickers.CreateStickerSet(
        user_id='username',
        title='My title',
        short_name='some string here',
        stickers=[raw.types.InputStickerSetItem(document=raw.types.InputDocumentEmpty(), emoji='')]
    )
    print(result)

asyncio.run(main())

The minimal example uses Ferogram's raw proxy shorthand. Peers can be passed as strings and required primitives get safe defaults. Expand Full API to see every parameter.

Full API
import asyncio
from ferogram import Client, raw

app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")

async def main():
    await app.start()
    result = await app(raw.functions.stickers.CreateStickerSet(
        masks=True,
        emojis=True,
        text_color=True,
        user_id=raw.types.InputPeerSelf(),
        title='My title',
        short_name='some string here',
        thumb=raw.types.InputDocumentEmpty(),
        stickers=[raw.types.InputStickerSetItem(document=raw.types.InputDocumentEmpty(), emoji='')],
        software='some string here'
    ))
    print(result)

asyncio.run(main())