Put more emphasis on common mistakes when getting entities by IDs

This commit is contained in:
Lonami Exo
2018-03-03 23:51:35 +01:00
parent 458d220af9
commit 393f505dc8
2 changed files with 21 additions and 0 deletions
@@ -112,6 +112,15 @@ as you wish. Remember to use the right types! To sum up:
))
This can further be simplified to:
.. code-block:: python
result = client(SendMessageRequest('username', 'Hello there!'))
# Or even
result = client(SendMessageRequest(PeerChannel(id), 'Hello there!'))
.. note::
Note that some requests have a "hash" parameter. This is **not**