package bot
- Alphabetic
- Public
- Protected
Type Members
- trait Commands extends AnyRef
Commands
Commands
Makes a bot command-aware using a nice declarative interface
- trait Polling extends Runnable
Polling
Polling
Provides updates by using polling (getUpdates) with a default cycle of 1s.
- abstract class TelegramBot extends TelegramBotApi with ScalajHttpClient
TelegramBot
TelegramBot
Base for Telegram Bots
- trait Webhooks extends Runnable with HttpHandler
Webhooks
Webhooks
Provides updates based on webhooks The server once stopped cannot be restarted
Value Members
- 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)
- object Utils