Allowed updates.
Allowed updates. See UpdateType.Filters. By default all updates are allowed.
Allowed updates. None
indicates no-filtering (all updates allowed).
import UpdateType.Filters._ override def allowedUpdates: Option[Seq[UpdateType]] = Some(MessageUpdates ++ InlineUpdates)
Executes action
for every incoming edited message event.
Executes action
for every incoming message.
Dispatch updates to specialized handlers.
Dispatch updates to specialized handlers. Incoming update can be a message, edited message, channel post, edited channel post, inline query, inline query results (sample), callback query, shipping or pre-checkout events.
Incoming update.
Sends text replies.
Sends text replies. Supports Markdown/HTML formatting and markups.
Note:
Only the tags mentioned above are currently supported. Tags must not be nested. All <, > and & symbols that are not a part of a tag or an HTML entity must be replaced with the corresponding HTML entities (< with <, > with > and & with &). All numerical HTML entities are supported. The API currently supports only the following named HTML entities: <, >, & and ".
Text of the message to be sent
Optional Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
Optional Disables link previews for links in this message
Optional Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.
Optional If the message is a reply, ID of the original message
com.bot4s.telegram.models.InlineKeyboardMarkup or com.bot4s.telegram.models.ReplyKeyboardMarkup or com.bot4s.telegram.models.ReplyKeyboardRemove or com.bot4s.telegram.models.ForceReply Optional Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to hide reply keyboard or to force a reply from the user.
Sends text replies in Markdown format.
Sends text replies in Markdown format.
Text of the message to be sent
Optional Disables link previews for links in this message
Optional Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.
Optional If the message is a reply, ID of the original message
models.InlineKeyboardMarkup or models.ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply Optional Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to hide reply keyboard or to force a reply from the user.
Generic extractor for messages.
Generic extractor for messages.
onCommand('hello) { implicit msg => using(_.from) { user => reply(s"Hello ${user.firstName}!") } }
Declarative helpers for processing incoming messages.