class

ActionBot::Base

Inherits Reference < Object

Constants

BOTS = [] of TypeNode

Constructors

new(update : Update | Nil = nil)
Source

Class methods

__adapter
Source
__platform
Source
bot_name

Bot name: SupportBot → "support" (webhook path segment).

Source

Instance methods

__reply_with(adapter : DeliveryAdapter, chat_id : String) : Nil

Reply override for alternate transports (SSE injects its own StreamingDelivery adapter instead of the platform one).

Source
dispatch(update : Update) : Nil
Source
dispatch

Filled in per-subclass by the module-level finished hook.

Source
reply
Source
update
Source

Macros

adapter(name)

adapter "telegram" | "whatsapp" | "test"

Source
callback_query
Source
command(name, &block)
Source
event(name, &block)
Source
message
Source