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_name | string |
Known RPC errors
This request can cause 2 known errors:
ShortNameInvalidError | The specified short name is invalid. |
ShortNameOccupiedError | The 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)