Struct slack_chat_api::dialog::Dialog
source · pub struct Dialog {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Dialog
impl Dialog
sourcepub async fn open(&self, dialog: &str, trigger_id: &str) -> Result<DndEndSchema>
pub async fn open(&self, dialog: &str, trigger_id: &str) -> Result<DndEndSchema>
This function performs a GET to the /dialog.open endpoint.
Open a dialog with a user
FROM: https://api.slack.com/methods/dialog.open
Parameters:
token: &str– Authentication token. Requires scope:none.dialog: &str– The dialog definition. This must be a JSON-encoded string.trigger_id: &str– Exchange a trigger to post to the user.