class

ActionBot::ReplyBuilder

Inherits Reference < Object

Constructors

new(adapter : DeliveryAdapter, chat_id : String)
Source

Instance methods

photo(file_id : String, caption : String | Nil = nil) : DeliveryReceipt
Source
stream

reply.stream do |emit| # emit.<<(chunk) repeatedly chunks.each { |c| emit << c } end

Falls back to buffering (single deliver) when the adapter has no StreamingDelivery capability.

Source
text(body : String) : DeliveryReceipt
Source