mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-14 18:12:25 +03:00
Mention limit parameter
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!
|
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.
|
Loading…
Reference in New Issue
Block a user