aboutsummaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index fa2332e..7df7f6e 100644
--- a/README.rst
+++ b/README.rst
@@ -48,6 +48,14 @@ initialize the module at the same time:
client = Client("<user-key>", api_token="<api-token>")
client.send_message("Hello!", title="Hello")
+Attachments can be sent with the ``attachment`` parameter which takes as
+argument as file object:
+
+.. code-block:: python
+
+ with open('/path/to/my/image.png', 'rb') as image:
+ client.send_message('Message with image', attachment=image)
+
Command line
~~~~~~~~~~~~