Module tdlight.api

Class TdApi.GetMenuButton

Enclosing class:
TdApi

public static final class TdApi.GetMenuButton extends TdApi.Function<TdApi.BotMenuButton>
Returns menu button set by the bot for the given user; for bots only. Returns BotMenuButton
  • Field Details

    • userId

      public long userId
      Identifier of the user or 0 to get the default menu button.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetMenuButton

      public GetMenuButton()
      Returns menu button set by the bot for the given user; for bots only. Returns BotMenuButton
    • GetMenuButton

      public GetMenuButton(long userId)
      Returns menu button set by the bot for the given user; for bots only. Returns BotMenuButton
      Parameters:
      userId - long Identifier of the user or 0 to get the default menu button.
    • GetMenuButton

      public GetMenuButton(DataInput input) throws IOException
      Returns menu button set by the bot for the given user; for bots only. Returns BotMenuButton
      Throws:
      IOException
  • Method Details