diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index b598ec40c..1e96db1ca 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -10078,7 +10078,8 @@ checkStickerSetName name:string = CheckStickerSetNameResult; //@description Creates a new sticker set. Returns the newly created sticker set //@user_id Sticker set owner; ignored for regular users //@title Sticker set title; 1-64 characters -//@name Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_"* (** is case insensitive) for bots; 1-64 characters +//@name Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_"* (** is case insensitive) for bots; 0-64 characters. +//-If empty, then the name returned by getSuggestedStickerSetName will be used automatically //@sticker_type Type of the stickers in the set //@needs_repainting Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only //@stickers List of stickers to be added to the set; must be non-empty. For TGS stickers, uploadStickerFile must be used before the sticker is shown diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 3294ad9c1..47710ceab 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -7925,7 +7925,7 @@ void StickersManager::create_new_sticker_set(UserId user_id, string title, strin } short_name = strip_empty_characters(short_name, MAX_STICKER_SET_SHORT_NAME_LENGTH); - if (short_name.empty()) { + if (short_name.empty() && is_bot) { return promise.set_error(Status::Error(400, "Sticker set name must be non-empty")); }