class PlatformPlays

Defined in:

platform_plays.cr
platform_plays/config.cr
platform_plays/match.cr
platform_plays/telegram.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Instance Method Summary

Constructor Detail

def self.new(channel : Int32 | String, token : String, url = "https://api.telegram.org/bot") #

[View source]

Instance Method Detail

def channel : Int32 | String #

[View source]
def channel=(channel : Int32 | String) #

[View source]
def commit(game_id, matches) #

There seems to be no actively maintained libgit2 binding yet, so using ShellExec for now


[View source]
def config : Array(GameConfig) #

[View source]
def config=(config : Array(GameConfig)) #

[View source]
def get_updates(timeout = 0) #

[View source]
def next_update_id : Int32 #

[View source]
def next_update_id=(next_update_id : Int32) #

[View source]
def run #

[View source]
def send_message(message : String) #

[View source]
def send_poll(question : String, options : Array(String)) #

[View source]