Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace button

Index

Functions

callback

  • callback(text: string, data: string, hide?: boolean): Hideable<CallbackButton>
  • Parameters

    • text: string
    • data: string
    • hide: boolean = false

    Returns Hideable<CallbackButton>

contactRequest

  • contactRequest(text: string, hide?: boolean): Hideable<RequestContactButton>
  • Parameters

    • text: string
    • hide: boolean = false

    Returns Hideable<RequestContactButton>

game

  • game(text: string, hide?: boolean): Hideable<GameButton>
  • Parameters

    • text: string
    • hide: boolean = false

    Returns Hideable<GameButton>

locationRequest

  • locationRequest(text: string, hide?: boolean): Hideable<RequestLocationButton>
  • Parameters

    • text: string
    • hide: boolean = false

    Returns Hideable<RequestLocationButton>

login

  • login(text: string, url: string, opts?: { bot_username?: undefined | string; forward_text?: undefined | string; request_write_access?: undefined | boolean }, hide?: boolean): Hideable<LoginButton>
  • Parameters

    • text: string
    • url: string
    • opts: { bot_username?: undefined | string; forward_text?: undefined | string; request_write_access?: undefined | boolean } = ...
      • Optional bot_username?: undefined | string
      • Optional forward_text?: undefined | string
      • Optional request_write_access?: undefined | boolean
    • hide: boolean = false

    Returns Hideable<LoginButton>

pay

  • pay(text: string, hide?: boolean): Hideable<PayButton>
  • Parameters

    • text: string
    • hide: boolean = false

    Returns Hideable<PayButton>

pollRequest

  • pollRequest(text: string, type?: "quiz" | "regular", hide?: boolean): Hideable<RequestPollButton>
  • Parameters

    • text: string
    • Optional type: "quiz" | "regular"
    • hide: boolean = false

    Returns Hideable<RequestPollButton>

switchToChat

  • switchToChat(text: string, value: string, hide?: boolean): Hideable<SwitchInlineButton>
  • Parameters

    • text: string
    • value: string
    • hide: boolean = false

    Returns Hideable<SwitchInlineButton>

switchToCurrentChat

  • switchToCurrentChat(text: string, value: string, hide?: boolean): Hideable<SwitchInlineCurrentChatButton>
  • Parameters

    • text: string
    • value: string
    • hide: boolean = false

    Returns Hideable<SwitchInlineCurrentChatButton>

text

  • text(text: string, hide?: boolean): Hideable<CommonButton>
  • Parameters

    • text: string
    • hide: boolean = false

    Returns Hideable<CommonButton>

url

  • url(text: string, url: string, hide?: boolean): Hideable<UrlButton>
  • Parameters

    • text: string
    • url: string
    • hide: boolean = false

    Returns Hideable<UrlButton>

Generated using TypeDoc