Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pass additional properties to regular messages #72

Merged
merged 1 commit into from
Sep 28, 2018
Merged

Ability to pass additional properties to regular messages #72

merged 1 commit into from
Sep 28, 2018

Conversation

bezumkin
Copy link
Contributor

After this PR you could send messages with attachments (and interactive buttons) without creating incoming hooks:

props = {
    'attachments': [{
        'fallback': 'Fallback text',
        'author_name': 'Author',
        'author_link': 'http://github.com',
        'text': 'Some text here ...',
        'color': '#59afe1',
        'actions': [{
            'name': 'Interactive button',
            'type': 'button',
            'integration': {}
        }]
    }]
}

message.reply('', props=props)

@bezumkin bezumkin closed this Sep 14, 2018
@bezumkin bezumkin reopened this Sep 14, 2018
@seLain seLain self-assigned this Sep 28, 2018
@seLain seLain self-requested a review September 28, 2018 08:22
@seLain seLain added the review label Sep 28, 2018
@seLain seLain merged commit cf10682 into attzonko:master Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants