You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found your library and it looks like it could be very useful. Is it possible to (re)add the text attribute to the Message surface?
In my case, I'm looking to use this with slack_bolt using the following endpoint:
@app.message("hello")
def message_hello(message, say):
# say() sends a message to the channel where the event was triggered
message = Message(
blocks=[
Section(text="Hey there")
],
).build()
say(message)
When I use this, I get a slack_bolt warning in my logs saying:
/Users/me/Library/Caches/pypoetry/virtualenvs/mack-0TpdqiFV-py3.9/lib/python3.9/site-packages/slack_sdk/web/
internal_utils.py:271: UserWarning: The `text` argument is missing in the request payload for a chat.postMessage
call - It's a best practice to always provide a `text` argument when posting a message. The `text` argument is
used in places where content cannot be rendered such as: system push notifications, assistive technology such as
screen readers, etc.
warnings.warn(message, UserWarning)
What I would like to be able to do is the following:
I decided that the text is not a part of the surface and removed it from Message, but I see how it can be beneficial. I will add it in the next release.
I just found your library and it looks like it could be very useful. Is it possible to (re)add the text attribute to the Message surface?
In my case, I'm looking to use this with slack_bolt using the following endpoint:
When I use this, I get a slack_bolt warning in my logs saying:
What I would like to be able to do is the following:
I know that I can work around it by manually adding
text
after creating the message, but I'd prefer to do it all in one operation.I see that
text
was previously available ~2 years ago. Was there a reason that it was removed?The text was updated successfully, but these errors were encountered: