From 77a91da21b87f0071052fa492bb8b39453300a39 Mon Sep 17 00:00:00 2001 From: Lonami Date: Wed, 18 Oct 2017 20:37:00 +0200 Subject: [PATCH] Mention limit parameter --- Accessing-the-Full-API.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Accessing-the-Full-API.md b/Accessing-the-Full-API.md index 52242ed..ee38698 100644 --- a/Accessing-the-Full-API.md +++ b/Accessing-the-Full-API.md @@ -46,4 +46,8 @@ result = client(SendMessageRequest(peer, 'Hello there!')) 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 +## Notes + +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). + +For those requests having a "limit" parameter, you can often set it to zero to signify "return as many items as possible". This won't work for all of them though, for instance, in "messages.search" it will actually return 0 items. \ No newline at end of file