Struct slack_chat_api::rtm::Rtm
source · pub struct Rtm {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Rtm
impl Rtm
sourcepub async fn connect(
&self,
batch_presence_aware: bool,
presence_sub: bool
) -> Result<RtmConnectSchema>
pub async fn connect( &self, batch_presence_aware: bool, presence_sub: bool ) -> Result<RtmConnectSchema>
This function performs a GET to the /rtm.connect endpoint.
Starts a Real Time Messaging session.
FROM: https://api.slack.com/methods/rtm.connect
Parameters:
token: &str– Authentication token. Requires scope:rtm:stream.batch_presence_aware: bool– Batch presence deliveries via subscription. Enabling changes the shape ofpresence_changeevents. See batch presence.presence_sub: bool– Only deliver presence events when requested by subscription. See presence subscriptions.