Lonami Exo
3a3ae75b46
Fix-up bot API style IDs not working on .get_input_entity
2018-03-08 10:12:43 +01:00
Lonami Exo
0f34a9b333
Fix .get_input_entity error message always showing None
2018-03-08 10:08:26 +01:00
Lonami Exo
ce0dee63b1
Support getting any entity by just their positive ID
2018-03-08 10:05:40 +01:00
Lonami Exo
d3d190f36e
Fix-up previous commit overriding .action_message with None
2018-03-07 17:57:54 +01:00
Lonami Exo
801018fa9b
Add respond, reply and delete methods to events.ChatAction
...
Also introduces the new .action_message member.
2018-03-07 17:51:59 +01:00
Lonami Exo
dc99d119c3
Fix events.MessageDeleted always failing due to extra "self."
2018-03-07 17:31:21 +01:00
Lonami Exo
fca4904d0f
Add more logging calls when confirming a request
2018-03-07 11:30:03 +01:00
Lonami Exo
d0bdb7ea3f
Lower message severity when retrying invoke the first time
2018-03-07 11:13:55 +01:00
Lonami Exo
dd6802e032
Support PhotoSize in .download_media ( #669 )
...
This simplifies downloading thumbnails (and any other PhotoSize).
2018-03-07 11:45:37 +01:00
Lonami Exo
e3adec5ea9
Fix caption being None
...
This would later be an empty string with some modifications that
were removed upon upgrading to layer 75, which changed where the
captions are used and their naming.
2018-03-07 09:09:05 +01:00
Lonami Exo
7201482ebd
Support limit=0 on .get_participants to fetch count only
2018-03-06 12:24:37 +01:00
Lonami Exo
4f880dcd56
Replace BLOB with LargeBinary in sqlalchemy.py ( closes #670 )
2018-03-06 12:09:37 +01:00
Lonami Exo
fe627d1970
Update to v0.18
2018-03-04 12:03:09 +01:00
Lonami Exo
e8a21dc3b9
Fix telethon_generator/ package not being excluded from PyPi
2018-03-04 11:23:18 +01:00
Lonami Exo
82c034dc56
Add forward_to on events.NewMessage
2018-03-04 00:32:26 +01:00
Lonami Exo
3a13f5f02f
Implement a forward_messages convenience method
2018-03-04 00:27:21 +01:00
Lonami Exo
363e751f48
Fix UserList not being considered a list
2018-03-04 00:23:13 +01:00
Lonami Exo
4de811b8cb
Expose the client on events as a public property
2018-03-03 23:55:35 +01:00
Lonami Exo
393f505dc8
Put more emphasis on common mistakes when getting entities by IDs
2018-03-03 23:51:35 +01:00
Lonami Exo
458d220af9
Fix users not being set for some events.ChatAction and properties
2018-03-03 23:41:27 +01:00
Lonami Exo
1c8bf44713
Add input user versions to events.ChatAction
2018-03-03 23:31:06 +01:00
Lonami Exo
c40a3ca77c
Split MessageChanged into MessageEdited and MessageDeleted
2018-03-03 23:23:14 +01:00
Lonami Exo
854c42b7ef
Add a file= parameter to client.send_message()
2018-03-03 23:12:05 +01:00
Lonami Exo
0f72aa8f94
Fix set union
2018-03-03 17:08:49 +01:00
Lonami Exo
96a1f580a4
Remove useless if condition on the memory session
2018-03-03 17:01:06 +01:00
Lonami Exo
81f8b7f76e
Add back _entity_values_to_row
2018-03-03 16:48:57 +01:00
Lonami Exo
57f50889b0
Fix non-aggressive get_participants and inverted condition
2018-03-03 15:12:48 +01:00
Lonami Exo
0e0e7f1c9e
Avoid unnecessary "or 0" in the session classes
2018-03-03 14:59:30 +01:00
Lonami Exo
6060b3430c
Fix sqlite session clone causing integrity error
...
Triggered on migrations, the dc id would be None.
2018-03-03 14:02:48 +01:00
Lonami Exo
67a782a6d7
Fix wrong peer type being used when not found in the session
2018-03-03 12:22:02 +01:00
Lonami Exo
a9c83250a1
Small clean-up of the session classes
2018-03-03 12:51:35 +01:00
Lonami Exo
1e420f7f91
Document the new abstract session better
2018-03-03 12:13:42 +01:00
Lonami
30f7a49263
Abstract Session class (merge #657 from tulir/sessions)
2018-03-03 11:33:47 +01:00
Tulir Asokan
9bf5cb7ed8
Add new sessions docs
2018-03-03 12:28:18 +02:00
Lonami Exo
74bffd2ae3
Support multiple captions when sending albums
2018-03-02 21:33:49 +01:00
Lonami Exo
2e31a686e8
Upgrade to layer 75
...
Captions are now "messages" and also support message entities.
2018-03-02 21:28:33 +01:00
Tulir Asokan
290afd85fc
Fix AlchemySession session table updating
2018-03-02 21:58:16 +02:00
Tulir Asokan
47cdcda9e2
Move device info out of Session
2018-03-02 21:05:09 +02:00
Tulir Asokan
5e88b21aa9
Use single quotes
2018-03-02 20:42:51 +02:00
Tulir Asokan
f805914c80
Handle SQLAlchemy import errors
2018-03-02 20:40:03 +02:00
Tulir Asokan
c1a8896faa
Fix SQLAlchemy implementation
2018-03-02 20:14:11 +02:00
Tulir Asokan
dc2229fdba
Move salt and ID to base session and remove unused imports
2018-03-02 18:39:04 +02:00
Lonami Exo
a7f98fd3cc
Ignore bad file descriptor while closing
2018-03-02 17:26:42 +01:00
Tulir Asokan
e1d7cc541f
Add setters for non-persistent values that apps might change
2018-03-02 18:23:18 +02:00
Tulir Asokan
03d4ab3765
Fix create_engine check
2018-03-02 13:25:40 +02:00
Tulir Asokan
07c2fc50ec
Add SQLAlchemy-based session
2018-03-02 13:22:30 +02:00
Tulir Asokan
118d9b10e8
Add more abstraction
2018-03-02 13:20:11 +02:00
Tulir Asokan
d9a73744a4
Remove old sqlite session variables and clone code
2018-03-02 12:36:39 +02:00
Tulir Asokan
df3faaeb7f
Fix abstract Session method ordering
2018-03-02 11:11:59 +02:00
Lonami Exo
4c7224e56a
Fix n might be None when stopping workers
2018-03-02 10:10:59 +01:00