stickers.checkShortName
Check whether the given short name is available
func (c *Client) StickersCheckShortName(ctx context.Context, shortname string) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.StickersCheckShortName(ctx, shortname)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ShortName | string | yes | Short name |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | SHORT_NAME_INVALID | The specified short name is invalid. |
| 400 | SHORT_NAME_OCCUPIED | The specified short name is already in use. |
References
- Official documentation
- Generated Go reference
- TL definition:
stickers.checkShortName#284b3639