class VKontakte::Client

Defined in:

vk.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(token : String | Array(String), v : String) #

[View source]

Instance Method Detail

def call(method : String, params : Hash, token : String | Array(String) = @token, debug : Bool = false) #

[View source]
def getBotLp(group_id) : VKontakte::LongPoll #

[View source]
def getBtn(label : String, payload : Hash, color : String = "default") #

[View source]
def getName(user_id : Int32, name_case = "Nom") #

[View source]
def send(message : String, peer_id : Int32, attachments : String | Array(String) = [] of String, keyboard = {} of String => VKontakte::KeyboardType, add_fields = {} of String => String) #

[View source]
def upload(file_name : String, peer_id : Int32 | String) #

[View source]