GetStickerSetRequest
Both users and bots can use this request. See code examples.
---functions--- messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet
Returns
| messages.StickerSet |
This type can be an instance of either:
| StickerSet | StickerSetNotModified |
Parameters
| stickerset | InputStickerSet | |
| hash | int |
Known RPC errors
This request can cause 2 known errors:
EmoticonStickerpackMissingError | The emoticon sticker pack you are trying to get is missing. |
StickersetInvalidError | The provided sticker set is invalid. |
You can import these from telethon.errors.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.messages.GetStickerSetRequest(
stickerset=types.InputStickerSetID(
id=-12398745604826,
access_hash=-12398745604826
),
hash=0
))
print(result.stringify())