From 8016ff381e90a7b62ca62f61790a7e4f9379b47c Mon Sep 17 00:00:00 2001 From: Lonami Date: Wed, 25 Oct 2017 13:31:07 +0200 Subject: [PATCH] Add summary --- Accessing-the-Full-API.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Accessing-the-Full-API.md b/Accessing-the-Full-API.md index 66f220f..e83dd49 100644 --- a/Accessing-the-Full-API.md +++ b/Accessing-the-Full-API.md @@ -46,7 +46,12 @@ result = client(SendMessageRequest(peer, 'Hello there!')) # __call__ is an alias for client.invoke(request). Both will work ``` -Message sent! Of course, this is only an example. There are over 240 methods available as of layer 71, and you can use every single of them as you wish. Remember to use the right types! +Message sent! Of course, this is only an example. There are over 240 methods available as of layer 71, and you can use every single of them as you wish. Remember to use the right types! To sum up: +```python +result = client(SendMessageRequest( + client.get_input_entity('username'), 'Hello there!' +)) +``` ## Notes