package slack

  1. Overview
  2. Docs

ApiHelpers Api_Impl is a functor that wraps Api for simple functionalities such as sending texts

Parameters

module Api : Api.S

Signature

val send_text_msg : ctx:Context.t -> channel:string -> text:string -> Slack_t.post_message_res Slack_t.slack_response Lwt.t
val update_text_msg : ctx:Context.t -> channel:string -> update:string -> ts:string -> Slack_t.update_message_res Slack_t.slack_response Lwt.t
val send_text_msg_as_user : ctx:Context.t -> channel:string -> text:string -> username:string -> ?icon_url:string -> ?icon_emoji:string -> unit -> Slack_t.post_message_res Slack_t.slack_response Lwt.t
val get_channel_type : ctx:Context.t -> channel:string -> (conversation_type, Slack_t.slack_api_error) Slack_t.http_response Lwt.t