Mention limit parameter

Lonami 2017-10-18 20:37:00 +02:00
parent f8f6266366
commit 77a91da21b

@ -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).
## 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.