Lonami Exo
cbcbda5276
Minor documentation and type hint updates
2019-07-17 12:37:16 +02:00
Lonami Exo
4bf85d9e8e
Add new Button.auth ( #1235 )
2019-07-17 12:25:29 +02:00
Lonami Exo
649e9a7b0c
Check for empty message after applying parse mode
2019-07-17 12:06:23 +02:00
Lonami Exo
cca50ef842
Improve flood wait log message
2019-07-17 12:04:53 +02:00
Lonami Exo
ec093f90e7
Fix InputKeyboardButtonUrlAuth was not considered inline
2019-07-16 18:47:28 +02:00
Lonami Exo
944fb10733
Add missing return self on action/download ctx managers
2019-07-13 21:21:29 +02:00
painor
ae1c1b3912
Improve permission-related errors ( #1231 )
2019-07-10 23:19:50 +02:00
painor
2adc746143
Fix CallbackQuery pattern= ( #1230 )
2019-07-10 17:37:36 +02:00
st7105
c4c263a85b
Use flush() only if it exists ( #1227 )
2019-07-09 11:40:05 +02:00
Lonami Exo
7a78aebb12
Update to v1.9.0
2019-07-06 19:38:18 +02:00
Lonami Exo
97e4d83593
Rename and clarify docs for edit_permissions
2019-07-06 19:31:33 +02:00
Lonami Exo
05b770a93f
Fix directly nested markdown entities
2019-07-06 12:55:44 +02:00
Lonami Exo
8e36bb4c4d
Link Python keywords with Python's documentation
2019-07-06 12:11:00 +02:00
painor
42d5c0fe6d
Add pattern parameter to events.CallbackQuery ( #1212 )
2019-07-05 21:03:07 +02:00
Lonami Exo
2d0fc8356f
Fix markdown parsing for pre blocks and entity after entity
2019-07-05 20:31:43 +02:00
Lonami Exo
be65c63f16
Add missing re-exports in telethon.sync
2019-07-05 16:51:08 +02:00
painor
2d2afc5280
Add edit_admin and edit_restrictions ( #1210 )
2019-07-05 10:48:21 +02:00
Lonami
0d9e639f4f
Support asynchronous progress_callback's
2019-07-04 15:34:51 +02:00
Lonami Exo
3f19f6fd50
Return None in UserUpdate if information is unknown
2019-07-04 10:34:48 +02:00
Lonami Exo
99b15b916c
Turn UserUpdate attributes into properties
...
This aids discoverability, makes them lazily-loaded,
and in general is more consistent and easier to extend.
2019-07-04 10:17:40 +02:00
Lonami Exo
7285b156f4
Create events.Album ( #1216 )
2019-06-30 16:34:34 +02:00
Lonami Exo
e8327da189
Fix some methods in Message were not checking for client
2019-06-30 16:34:34 +02:00
Lonami Exo
a7a7c4add2
Pass all Updates when building events
2019-06-30 16:34:34 +02:00
Lonami Exo
aa2b3daccc
Factor out setting entities to events
2019-06-30 16:34:34 +02:00
Lonami Exo
8c771a842f
Fix Python 3.5.2 type hinting ( #1177 )
2019-06-28 21:26:08 +02:00
Lonami Exo
9322c37a94
Document iteration order
2019-06-28 20:44:06 +02:00
Lonami Exo
84c4fcdec6
Fix entities weren't being passed to Draft
2019-06-28 20:34:30 +02:00
Lonami Exo
81e628b9f7
Fix explicit reverse=True with ids= not working
2019-06-28 20:27:36 +02:00
Lonami Exo
4f1edeb750
Let File.ext work even with unknown mime types
2019-06-26 11:31:15 +02:00
Lonami Exo
80c9c5dad3
Avoid memory cycle in Forward
2019-06-26 11:16:17 +02:00
Lonami Exo
b6b4ea669d
Remove messy subclassing in the TelegramClient
...
Since it was easy to cause MRO inconsistencies, and it's
not really needed now that self is type hinted as the client.
2019-06-24 17:48:46 +02:00
Lonami Exo
4e80e21ba1
Update markdown parser to support nested entities
2019-06-24 13:48:29 +02:00
Tulir Asokan
8b28f4ffbf
Add support for unparsing nested entities into HTML ( #1209 )
2019-06-24 12:28:14 +02:00
Lonami Exo
962949008f
Add new message entities to markdown/html parsers
2019-06-23 21:35:33 +02:00
Lonami Exo
3c68208c41
Update to layer 102
2019-06-23 21:23:40 +02:00
Lonami Exo
83789aaa42
Return None from ChatGetter when there isn't enough info
2019-06-19 11:46:03 +02:00
Lonami Exo
35ba9848d9
Fix get_extension missing even more photo cases
2019-06-16 11:15:52 +02:00
Lonami
86cdb7c1f8
Remove accidentally-committed debug print
2019-06-15 23:14:59 +02:00
Lonami Exo
8d28d1145a
Actually fix invalid state in Conversation ( 1354bf6
followup)
2019-06-15 21:36:06 +02:00
Lonami Exo
40d32cee95
Assert that dispatched updates are Updates
2019-06-15 21:15:57 +02:00
Lonami Exo
5877459907
Create Message.mark_read()
2019-06-15 19:41:31 +02:00
Lonami Exo
1a056899d7
Fix caption when using send_file for albums / mixed documents
2019-06-15 16:59:16 +02:00
Lonami Exo
fd37e44854
Fix is_image not considering MessageMedia objects
...
This was causing albums with MessageMedia objects to fail.
2019-06-15 16:42:26 +02:00
Terrance
634d8a7898
Refactor libssl import path workarounds ( #1202 )
...
This amends the logic introduced for #1167 to only run when a plain
import of the library fails, thus avoiding the slow path traversal
needed to find the underlying library file.
2019-06-15 13:42:31 +02:00
Lonami Exo
51de0bd2da
Update documentation with intersphinx and better summaries
2019-06-11 11:09:22 +02:00
Lonami Exo
31a26c0a0a
Fix iter_dialogs missing dialogs once and for all
2019-06-11 10:04:36 +02:00
Lonami Exo
b8a38baaf6
Expose ignore_pinned in iter_dialogs
2019-06-11 09:55:13 +02:00
Lonami Exo
770c2c504d
Add new methods to encode and decode waveforms
2019-06-04 21:36:38 +02:00
Lonami Exo
065719c8d8
conversation.cancel() now raises cancelled on future calls ( #1183 )
2019-06-03 19:44:43 +02:00
Lonami Exo
4c3e467d25
Add a method to cancel_all conversations ( #1183 )
2019-06-03 19:41:22 +02:00
Lonami Exo
690a40be77
Better behaviour for conversation.cancel() ( #1183 )
2019-06-03 19:29:08 +02:00
Lonami
9d6150da37
Fix downloading contacts to path ( #1197 )
2019-06-03 15:44:43 +02:00
Lonami Exo
e47f3ec1d6
Clarify some aspects of the documentation
2019-06-01 16:28:20 +02:00
Lonami Exo
30a0e39060
Update to v1.8.0
2019-05-30 21:31:07 +02:00
Lonami Exo
5832ab2f31
Create new client.pin_message method
2019-05-30 17:15:50 +02:00
Lonami Exo
9ea686ab14
Create new client.iter_profile_photos method
2019-05-30 16:51:19 +02:00
Lonami Exo
0d64fd98f7
Create new client.delete_dialog method
2019-05-30 13:58:05 +02:00
Lonami Exo
e4158acd08
Update to layer 100
2019-05-30 13:23:47 +02:00
Lonami Exo
9f72bd8ca3
Fix manual raising of RPC errors
2019-05-27 18:18:38 +02:00
Lonami Exo
1354bf68a8
Factor out clearing items from pending in conversations
...
This should prevent bugs and ease reasoning, since
now everything is removed from a single place.
2019-05-27 14:23:42 +02:00
Lonami Exo
0b41454b01
Fix conversation setting result on cancelled futures
...
On timeout, they are cancelled. On a new message
arriving, we pop and set the result unconditionally.
conv.send_message('Talk to me please')
conv.get_response()
try: conv.get_response(timeout=0.1)
except asyncio.TimeoutError: pass
conv.send_message('One more time...')
conv.get_response() # errors unless above is commented
2019-05-27 14:10:38 +02:00
Lonami Exo
e5485f3d54
Document raw methods with friendly variants
2019-05-26 21:15:43 +02:00
Lonami Exo
4ebf825c43
Clarify documentation on connection and receiving updates
2019-05-23 12:11:58 +02:00
Lonami Exo
6e5f90730e
Fix reversed(client.iter_messages(offset_date=...))
2019-05-22 12:20:02 +02:00
Lonami Exo
80f19bd1f0
Point to the new domains
2019-05-22 11:29:46 +02:00
Lonami Exo
c3d1d7a64c
Rename client.archive as client.edit_folder
2019-05-22 11:20:56 +02:00
Lonami Exo
cf152403ee
Use iter_download on download_file
2019-05-21 16:40:11 +02:00
Lonami Exo
0b0f8f4285
Create a method to iterate downloads
2019-05-21 16:16:32 +02:00
Lonami Exo
a9ff328e38
Fix iter_participants search on small group chats
2019-05-20 14:02:51 +02:00
Lonami Exo
465f38c1c6
Fix message.text behaviour with no parse mode
2019-05-20 12:00:52 +02:00
Lonami Exo
383ab9b0b2
Fix message.text not checking if parse_mode was set
2019-05-20 11:57:11 +02:00
Lonami Exo
7c1c040d50
Update docstrings to have consistent style
2019-05-20 11:57:11 +02:00
Hasan
4b74d16438
Fix file_id error checking ( #1189 )
2019-05-19 22:18:35 +02:00
Lonami Exo
e5f1b2afa3
Update logging calls to use proper formatting
2019-05-17 12:30:13 +02:00
Lonami Exo
a4c2e45d6d
Handle more key errors on forward message
2019-05-17 12:30:13 +02:00
Lonami Exo
bcfc3e7550
Remove invalid error inits and move bad msg error
2019-05-15 13:58:19 +02:00
Terrance
0946a7902f
Fix super() initialisation call for EventCommon ( #1182 )
2019-05-12 23:29:01 +02:00
Lonami Exo
9730894a07
Call Chat/Sender Getter init methods
2019-05-12 14:00:12 +02:00
Lonami Exo
fefd6f0e6d
Fix use of tg://join?invite= channels
2019-05-12 13:44:09 +02:00
Lonami Exo
5754ad589f
Fix type hints for Python 3.5.2 ( #1177 )
2019-05-12 13:08:07 +02:00
Lonami Exo
4ca3517e22
Fix some type hints
2019-05-11 20:12:57 +02:00
Lonami Exo
c1be0bd2e8
Fix disconnection without a previous connection
2019-05-11 16:53:11 +02:00
Lonami Exo
278f0e9e98
Don't raise errors during disconnect
2019-05-10 18:54:10 +02:00
Lonami Exo
313caf440e
Add friendly methods for archiving dialogs
2019-05-10 18:12:16 +02:00
Lonami Exo
1828dca0b9
Support filtering by folder on iter_dialogs
2019-05-10 15:45:24 +02:00
Lonami Exo
a7443612f6
Fix download of PhotoStrippedSize to bytes
2019-05-09 18:56:54 +02:00
Lonami Exo
fbce902cf8
Fix minor documentation issue regarding pre tags
2019-05-09 14:13:43 +02:00
Lonami Exo
7f88238d8f
Update external links to the documentation
2019-05-09 14:09:22 +02:00
Lonami Exo
0a3d6106f0
Completely overhaul the documentation
2019-05-09 12:50:09 +02:00
Lonami Exo
10251f9782
Create a new Message.file property ( #1168 )
2019-05-08 18:41:40 +02:00
Lonami Exo
cfd6d3ce04
Fix catch-up when no pts is known
2019-05-08 18:15:57 +02:00
Lonami Exo
d92d989569
Quote type hints
...
Otherwise, sphinx completely butchers the documentation.
2019-05-08 17:16:09 +02:00
Lonami Exo
c6691dc6a8
Update the reference with even more types and other docs
2019-05-07 21:25:55 +02:00
Lonami Exo
8bd9dd66ab
Re-export the main modules and types from sync
...
For convenience. People can now easily replace:
from telethon import TelegramClient, events
with
from telethon.sync import TelegramClient, events
2019-05-07 10:47:25 +02:00
Lonami Exo
61613ab6ac
Create a new page with a summary of the method reference
2019-05-06 11:38:26 +02:00
Lonami Exo
744f5f50fe
Fix saving of StringSession
2019-05-06 08:55:24 +02:00
Lonami Exo
7d0efcf50f
Save pts and date only if there is something to save
2019-05-05 22:13:02 +02:00
Lonami Exo
5ed7bf7815
Fix timeout error not being excepted on Button.click
2019-05-05 19:57:09 +02:00
Lonami Exo
19398d75be
Add support for hexadecimal invite links
2019-05-05 11:56:04 +02:00
Lonami Exo
945d438696
Properly await all spawned background tasks
2019-05-04 21:02:07 +02:00