Module tdlight.api

Class TdApi.SetMenuButton

Enclosing class:
TdApi

public static final class TdApi.SetMenuButton extends TdApi.Function<TdApi.Ok>
Sets menu button for the given user or for all users; for bots only. Returns Ok
  • Field Details

    • userId

      public long userId
      Identifier of the user or 0 to set menu button for all users.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetMenuButton

      public SetMenuButton()
      Sets menu button for the given user or for all users; for bots only. Returns Ok
    • SetMenuButton

      public SetMenuButton(long userId, TdApi.BotMenuButton menuButton)
      Sets menu button for the given user or for all users; for bots only. Returns Ok
      Parameters:
      userId - long Identifier of the user or 0 to set menu button for all users.
      menuButton - BotMenuButton New menu button.
    • SetMenuButton

      public SetMenuButton(DataInput input) throws IOException
      Sets menu button for the given user or for all users; for bots only. Returns Ok
      Throws:
      IOException
  • Method Details