Class TdApi.ToggleStoryIsPostedToChatPage
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.ToggleStoryIsPostedToChatPage
- Enclosing class:
- TdApi
Toggles whether a story is accessible after expiration. Can be called only if story.canToggleIsPostedToChatPage == true.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.boolean
Pass true to make the story accessible after expiration; pass false to make it private.int
Identifier of the story.long
Identifier of the chat that posted the story. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which toggles whether a story is accessible after expiration.ToggleStoryIsPostedToChatPage
(long storySenderChatId, int storyId, boolean isPostedToChatPage) Creates a function, which toggles whether a story is accessible after expiration. -
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
-
storySenderChatId
public long storySenderChatIdIdentifier of the chat that posted the story. -
storyId
public int storyIdIdentifier of the story. -
isPostedToChatPage
public boolean isPostedToChatPagePass true to make the story accessible after expiration; pass false to make it private. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ToggleStoryIsPostedToChatPage
public ToggleStoryIsPostedToChatPage()Default constructor for a function, which toggles whether a story is accessible after expiration. Can be called only if story.canToggleIsPostedToChatPage == true.Returns
Ok
-
ToggleStoryIsPostedToChatPage
public ToggleStoryIsPostedToChatPage(long storySenderChatId, int storyId, boolean isPostedToChatPage) Creates a function, which toggles whether a story is accessible after expiration. Can be called only if story.canToggleIsPostedToChatPage == true.Returns
Ok
- Parameters:
storySenderChatId
- Identifier of the chat that posted the story.storyId
- Identifier of the story.isPostedToChatPage
- Pass true to make the story accessible after expiration; pass false to make it private.
-
-
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
-