module

Turnir::Client::NuumPolling

Constants

CHAT_URL = "https://nuum.ru/api/v3/chats?contentType={{type}}&contentId={{id}}"
EVENTS_URL = "https://nuum.ru/api/v3/events/{{chat_id}}/events"
HEADERS = HTTP::Headers {"Origin" => "https://nuum.ru", "Accept" => "application/json", "Content-Type" => "application/json"}
LAST_TS_PER_CHAT = {} of String => String
PUBLIC_CHANNEL_URL = "https://nuum.ru/api/v2/broadcasts/public?channel_name={{channel}}"
SUBSCRIBED_CHATS = Set(String).new

Instance methods

fetch_events(chat_id : String)
Source
get_chat_id(channel_name : String) : Int32 | Nil
Source
log(msg : String)
Source
start(sync_channel : Channel(Nil), storage : Turnir::ChatStorage::Storage, channels_map : Hash(String, String))
Source
stop
Source
subscribe_to_channel(channel_name : String)
Source