docs(client): updated docs for createStickerSet
This commit is contained in:
parent
14d2f9ff08
commit
03cb8fd5e8
2 changed files with 18 additions and 10 deletions
|
@ -2802,16 +2802,20 @@ export interface TelegramClient extends BaseTelegramClient {
|
||||||
}
|
}
|
||||||
): Promise<StickerSet>
|
): Promise<StickerSet>
|
||||||
/**
|
/**
|
||||||
* Create a new sticker set (only for bots)
|
* Create a new sticker set.
|
||||||
*
|
*
|
||||||
* Only for bots.
|
* This is the only sticker-related method that
|
||||||
|
* users can use (they allowed it with the "import stickers" update)
|
||||||
*
|
*
|
||||||
* @param params
|
* @param params
|
||||||
* @returns Newly created sticker set
|
* @returns Newly created sticker set
|
||||||
*/
|
*/
|
||||||
createStickerSet(params: {
|
createStickerSet(params: {
|
||||||
/**
|
/**
|
||||||
* Owner of the sticker set (must be user)
|
* Owner of the sticker set (must be user).
|
||||||
|
*
|
||||||
|
* If this pack is created from a user account,
|
||||||
|
* can only be `"self"`
|
||||||
*/
|
*/
|
||||||
owner: InputPeerLike
|
owner: InputPeerLike
|
||||||
|
|
||||||
|
@ -2824,8 +2828,8 @@ export interface TelegramClient extends BaseTelegramClient {
|
||||||
* Short name of the sticker set.
|
* Short name of the sticker set.
|
||||||
* Can only contain English letters, digits and underscores
|
* Can only contain English letters, digits and underscores
|
||||||
* (i.e. must match `/^[a-zA-Z0-9_]+$/),
|
* (i.e. must match `/^[a-zA-Z0-9_]+$/),
|
||||||
* and must end with `_by_<bot username>` (`<bot username>` is
|
* and (for bots) must end with `_by_<bot username>`
|
||||||
* case-insensitive).
|
* (`<bot username>` is case-insensitive).
|
||||||
*/
|
*/
|
||||||
shortName: string
|
shortName: string
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,10 @@ const MASK_POS = {
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new sticker set (only for bots)
|
* Create a new sticker set.
|
||||||
*
|
*
|
||||||
* Only for bots.
|
* This is the only sticker-related method that
|
||||||
|
* users can use (they allowed it with the "import stickers" update)
|
||||||
*
|
*
|
||||||
* @param params
|
* @param params
|
||||||
* @returns Newly created sticker set
|
* @returns Newly created sticker set
|
||||||
|
@ -29,7 +30,10 @@ export async function createStickerSet(
|
||||||
this: TelegramClient,
|
this: TelegramClient,
|
||||||
params: {
|
params: {
|
||||||
/**
|
/**
|
||||||
* Owner of the sticker set (must be user)
|
* Owner of the sticker set (must be user).
|
||||||
|
*
|
||||||
|
* If this pack is created from a user account,
|
||||||
|
* can only be `"self"`
|
||||||
*/
|
*/
|
||||||
owner: InputPeerLike
|
owner: InputPeerLike
|
||||||
|
|
||||||
|
@ -42,8 +46,8 @@ export async function createStickerSet(
|
||||||
* Short name of the sticker set.
|
* Short name of the sticker set.
|
||||||
* Can only contain English letters, digits and underscores
|
* Can only contain English letters, digits and underscores
|
||||||
* (i.e. must match `/^[a-zA-Z0-9_]+$/),
|
* (i.e. must match `/^[a-zA-Z0-9_]+$/),
|
||||||
* and must end with `_by_<bot username>` (`<bot username>` is
|
* and (for bots) must end with `_by_<bot username>`
|
||||||
* case-insensitive).
|
* (`<bot username>` is case-insensitive).
|
||||||
*/
|
*/
|
||||||
shortName: string
|
shortName: string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue