mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-14 04:35:58 +00:00
Put more emphasis on common mistakes when getting entities by IDs
This commit is contained in:
@@ -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**
|
||||
|
||||
Reference in New Issue
Block a user