CreateNewStickerSet class final
Creates a new sticker set. Returns the newly created sticker set
Returns StickerSet.
- Inheritance
-
- Object
- TdFunction<
StickerSet> - CreateNewStickerSet
Constructors
-
CreateNewStickerSet({required int userId, required String title, required String name, required StickerFormat stickerFormat, required StickerType stickerType, required bool needsRepainting, required List<
InputSticker> stickers, required String source}) -
Creates a new sticker set. Returns the newly created sticker set
const
Properties
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Sticker set name. Can contain only English letters, digits and underscores. Must end with "by (<bot_username> is case insensitive) for bots; 1-64 characters
final
- needsRepainting → bool
-
Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
Source of the sticker set; may be empty if unknown
final
- stickerFormat → StickerFormat
-
Format of the stickers in the set
final
-
stickers
→ List<
InputSticker> -
List of stickers to be added to the set; must be non-empty. All stickers must have the same format. For TGS stickers, uploadStickerFile must be used before the sticker is shown
final
- stickerType → StickerType
-
Type of the stickers in the set
final
- title → String
-
Sticker set title; 1-64 characters
final
- userId → int
-
Sticker set owner; ignored for regular users
final
Methods
-
copyWith(
{int? userId, String? title, String? name, StickerFormat? stickerFormat, StickerType? stickerType, bool? needsRepainting, List< InputSticker> ? stickers, String? source}) → CreateNewStickerSet -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.