Skip to main content

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

NameTypeRequiredDescription
ShortNamestringyesShort name

Returns

bool

Possible errors

CodeTypeDescription
400SHORT_NAME_INVALIDThe specified short name is invalid.
400SHORT_NAME_OCCUPIEDThe specified short name is already in use.

References