INNER CODE UNIT · Python

handler_tldr_since_slash_command

meetbryce/open-source-slack-ai · ossai/handlers.py:161

async def handler_tldr_since_slash_command(slack_context: SlackContext, ack, payload, say):
    await ack()
    client = slack_context.client
    title = "Choose your summary timeframe."
    dm_channel_id = await slack_context.get_direct_message_channel_id(payload["user_id"])

    custom_prompt = payload.get("text", None)

    result = client.chat_postEphemeral(
        channel=payload["channel_id"],
        user=payload["user_id"],
        text=title,
        blocks=[
            {
                "type": "actions",
                "elements": [
                    get_since_timeframe_presets(),
                    {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…