Class TdApi.ReplaceStickerInSet
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.ReplaceStickerInSet
- Enclosing class:
- TdApi
Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.Sticker set name.Sticker to add to the set.Sticker to remove from the set.long
Sticker set owner; ignored for regular users. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which replaces existing sticker in a set.ReplaceStickerInSet
(long userId, String name, TdApi.InputFile oldSticker, TdApi.InputSticker newSticker) Creates a function, which replaces existing sticker in a set. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
userId
public long userIdSticker set owner; ignored for regular users. -
name
Sticker set name. The sticker set must be owned by the current user. -
oldSticker
Sticker to remove from the set. -
newSticker
Sticker to add to the set. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ReplaceStickerInSet
public ReplaceStickerInSet()Default constructor for a function, which replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet.Returns
Ok
-
ReplaceStickerInSet
public ReplaceStickerInSet(long userId, String name, TdApi.InputFile oldSticker, TdApi.InputSticker newSticker) Creates a function, which replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet.Returns
Ok
- Parameters:
userId
- Sticker set owner; ignored for regular users.name
- Sticker set name. The sticker set must be owned by the current user.oldSticker
- Sticker to remove from the set.newSticker
- Sticker to add to the set.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-