Packages

package bot

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package api
  2. package http
  3. package json

Type Members

  1. trait Commands extends AnyRef

    Commands

    Commands

    Makes a bot command-aware using a nice declarative interface

  2. trait Polling extends Runnable

    Polling

    Polling

    Provides updates by using polling (getUpdates) with a default cycle of 1s.

  3. abstract class TelegramBot extends TelegramBotApi with ScalajHttpClient

    TelegramBot

    TelegramBot

    Base for Telegram Bots

  4. trait Webhooks extends Runnable with HttpHandler

    Webhooks

    Webhooks

    Provides updates based on webhooks The server once stopped cannot be restarted

Value Members

  1. object OptionPimps

    Cleaner syntax for optional (Option) parameters.

    Cleaner syntax for optional (Option) parameters.

    ?(true) -> Option(true) -> Some(true) ?("hello") -> Option("hello") -> Some("hello") ?(null) -> Option(null) -> None

    toOption allows using optional parameters in a natural way as follows:

    sendMessage(chat_id, text, disable_web_page_preview = Some(true), reply_to_message_id = Some(12345))

    Becomes:

    sendMessage(chat_id, text, disable_web_page_preview = true, reply_to_message_id = 12345)

  2. object Utils

Ungrouped