From b141079076b89ffa072544389b3449134d22e969 Mon Sep 17 00:00:00 2001 From: Lonami Date: Thu, 12 Oct 2017 18:23:25 +0200 Subject: [PATCH] Mention hash parameter --- Accessing-the-Full-API.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Accessing-the-Full-API.md b/Accessing-the-Full-API.md index 927192a..52242ed 100644 --- a/Accessing-the-Full-API.md +++ b/Accessing-the-Full-API.md @@ -44,4 +44,6 @@ 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! \ No newline at end of file +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! + +Note that some requests have a "hash" parameter. This is **not** your `api_hash`! It likely isn't your self-user `.access_hash` either. It's a special hash used by Telegram to only send a difference of new data that you don't already have with that request, so you can leave it to 0, and it should work (which means no hash is known yet). \ No newline at end of file