class

ActionBot::Adapters::TelegramAdapter

Inherits ActionBot::WebhookVerification < ActionBot::IngressAdapter < ActionBot::StreamingDelivery < ActionBot::DeliveryAdapter < ActionBot::DeliveryAdapter < Reference < Object

Constants

DEFAULT_BASE = "https://api.telegram.org"

Constructors

Instance methods

api_call(method : String, payload : String) : JSON::Any
Source
append_stream(receipt : DeliveryReceipt, text_chunk : String) : Nil
Source
commit_stream(receipt : DeliveryReceipt, final_text : String) : Nil
Source
deliver(msg : OutboundMessage) : DeliveryReceipt
Source
edit_message_payload(chat_id : String, message_id : String, text : String) : String
Source
get_updates(offset : Int64, timeout : Int32 = 25) : Array(Update)
Source
parse_update(payload : JSON::Any) : Update
Source
photo_payload(msg : OutboundMessage) : String
Source
send_message_payload(msg : OutboundMessage) : String
Source
start_stream(chat_id : String) : DeliveryReceipt
Source
verify_webhook?(headers : HTTP::Headers, body : String) : Bool
Source