We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8522972 commit dfc39d7Copy full SHA for dfc39d7
1 file changed
README.rst
@@ -48,6 +48,14 @@ initialize the module at the same time:
48
client = Client("<user-key>", api_token="<api-token>")
49
client.send_message("Hello!", title="Hello")
50
51
+Attachments can be sent with the ``attachment`` parameter which takes as
52
+argument as file object:
53
+
54
+.. code-block:: python
55
56
+ with open('/path/to/my/image.png', 'rb') as image:
57
+ client.send_message('Message with image', attachment=image)
58
59
Command line
60
~~~~~~~~~~~~
61
0 commit comments