Mattermost, Inc.

Posts with attachments and desktop notifications ("... did something new")

Hi there!

I am trying to develop a little integration. I have been using attachments ( in order to have a message with a green, red or blue border at the left side. Just as in the examples on the linked page, I have a post that consists only of an “attachment”. I have a “text” and a “fallback” field within my attachment and everything looks good, except the notifications: My Desktop Client notifications don’t use the “fallback” text but instead say " did something new". At the message’s top level, I don’t want a text to be defined, but I tried a “fallback” field at this level which is ignored.

My message payload looks as follows:

payload = {
    'channel'  : 'off-topic',
    'username' : 'I am a bot',
    'fallback' : 'this is the fallback text', # this is ignored...?
    'attachments': [
            'text' : '**formatted** _text_',
            'fallback' : "fallback unformatted text message",
            'color': '#1A9D01',
            'title': 'Super Important Notification',
            'title_link': '',

Any idea on how to achieve this correctly?



Hi @christiananton - does this also happen on a browser?

My guess is this is a bug, we have a similar ticket here for that happening when there is only an attachment but it sounds like it’s also happening when there’s no fallback text.

If you’d like to submit a fix for it, I don’t think anyone on the team has had a chance to work on it yet.