CheckShortNameRequest

Only users can use this request. See code examples.

---functions---
stickers.checkShortName#284b3639 short_name:string = Bool

Returns

Bool

This type has no instances available.

Parameters

short_namestring

Known RPC errors

This request can cause 2 known errors:

ShortNameInvalidErrorThe specified short name is invalid.
ShortNameOccupiedErrorThe specified short name is already in use.

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.stickers.CheckShortNameRequest(
        short_name='some string here'
    ))
    print(result)