slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.64k stars 1.13k forks source link

text width in attachments #1110

Closed riza-awang closed 2 years ago

riza-awang commented 2 years ago

What happened

the message is truncated, no more than 80 characters

Screen Shot 2022-09-07 at 01 10 20

Expected behavior

the message is not truncated.

Screen Shot 2022-09-07 at 01 10 51

Steps to reproduce

create long string

attachment := slack.Attachment{
    Pretext:
    "*something1something2something3something4something5something6something7something8something9*\n"+
    "```+------------+-------------------+-------------+-------------+-----------------+-------------+\n"+
    "| Column A | Column B | Column C | Column D | Column E | Column F | Column G | Column H | Column I |\n"+
    "+------------+-------------------+-------------+-------------+-----------------+-------------+```\n"+
""}

reproducible code

manifest.yaml

Versions

kanata2 commented 2 years ago

This is slack's specification and is not related to slack-go. Please use text instead of attachments.