Module: Lark::Apis::Bot

Defined in:
lib/lark/apis/bot.rb

Instance Method Summary collapse

Instance Method Details

#add(chat_id) ⇒ Object



8
9
10
# File 'lib/lark/apis/bot.rb', line 8

def add(chat_id)
  post 'bot/v3/add', {chat_id: chat_id}
end

#infoObject



4
5
6
# File 'lib/lark/apis/bot.rb', line 4

def info
  get 'bot/v3/info/'
end

#remove(chat_id) ⇒ Object



12
13
14
# File 'lib/lark/apis/bot.rb', line 12

def remove(chat_id)
  post 'bot/v3/remove', {chat_id: chat_id}
end