Class TdApi.SetChatPinnedStories

Enclosing class:
TdApi

public static class TdApi.SetChatPinnedStories extends TdApi.Function<TdApi.Ok>
Changes the list of pinned stories on a chat page; requires canEditStories right in the chat.

Returns Ok

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Identifier of the chat that posted the stories.
    static final int
    Identifier uniquely determining type of the object.
    int[]
    New list of pinned stories.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which changes the list of pinned stories on a chat page; requires canEditStories right in the chat.
    SetChatPinnedStories(long chatId, int[] storyIds)
    Creates a function, which changes the list of pinned stories on a chat page; requires canEditStories right in the chat.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat that posted the stories.
    • storyIds

      public int[] storyIds
      New list of pinned stories. All stories must be posted to the chat page first. There can be up to getOption("pinned_story_count_max") pinned stories on a chat page.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SetChatPinnedStories

      public SetChatPinnedStories()
      Default constructor for a function, which changes the list of pinned stories on a chat page; requires canEditStories right in the chat.

      Returns Ok

    • SetChatPinnedStories

      public SetChatPinnedStories(long chatId, int[] storyIds)
      Creates a function, which changes the list of pinned stories on a chat page; requires canEditStories right in the chat.

      Returns Ok

      Parameters:
      chatId - Identifier of the chat that posted the stories.
      storyIds - New list of pinned stories. All stories must be posted to the chat page first. There can be up to getOption("pinned_story_count_max") pinned stories on a chat page.
  • 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR