mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-10 02:35:57 +00:00
Added an interactive example, more doc, fixes and improvements
The interactive example allows you to list the top dialogs and send messages to them until "!q" is entered More documetation has been added Fixes when representing TLObjects (lists did not represent well) The `send_code_request` now allows to use multiple phone numbers at once
This commit is contained in:
@@ -34,9 +34,10 @@ def my_function(self, my_arguments):
|
||||
|
||||
return request.result
|
||||
```
|
||||
5. To determine how the result will look like, simply look at the original `.tl` definition. After the `=`,
|
||||
To determine how the result will look like, simply look at the original `.tl` definition. After the `=`,
|
||||
you will see the type. Let's see an example:
|
||||
`stickerPack#12b299d4 emoticon:string documents:Vector<long> = StickerPack;`
|
||||
|
||||
As it turns out, the result is going to be an `StickerPack`. Without a second doubt, head into `tl/types/` and find it;
|
||||
open the file and see what the result will look like. Alternatively, you can simply `print(str(request.result))`!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user