class Tourmaline::Poller

Overview

The Poller class is responsible for polling Telegram's API for updates, and then passing them to the Dispatcher for processing.

Defined in:

tourmaline/poller.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Tourmaline::Client) #

[View source]

Instance Method Detail

def get_updates #

[View source]
def offset : Int64 #

[View source]
def poll_and_dispatch #

[View source]
def start #

Starts polling Telegram's API for updates.


[View source]
def stop #

[View source]