Lonami Exo
fa6e5d95a9
Fix parsing messages
2022-03-02 13:41:14 +01:00
Lonami Exo
0eb18f2f5a
Raise TimeoutError from inline_query instead
2022-03-02 13:13:43 +01:00
Lonami Exo
4d6e75a54e
Fix update dispatch errors
2022-03-02 13:10:33 +01:00
Lonami Exo
2a750fa696
Ignore ChannelParticipantLeft
...
Closes #3252 .
2022-03-02 13:01:28 +01:00
Lonami Exo
07aadf9fbf
Fix get_profile name errors
2022-03-02 13:00:41 +01:00
Lonami Exo
6d293b440c
Update code using get_input_entity
2022-03-02 13:00:41 +01:00
Lonami Exo
5ff8eb8159
Remove get_input_entity and get_peer_id
2022-03-02 13:00:41 +01:00
Lonami Exo
3865b7fa53
Rename get_entity to get_profile
2022-03-02 13:00:41 +01:00
Lonami Exo
68d07beb21
Rename Entity type hint
2022-03-02 13:00:41 +01:00
Lonami Exo
c3cefef37c
Rename entity parameter with something clearer
2022-03-02 13:00:41 +01:00
Lonami Exo
392808b950
Handle GapError in updates loop
2022-03-02 13:00:41 +01:00
Lonami Exo
a76c9e9f4c
Fix non-obvious error when not connected
2022-03-02 13:00:41 +01:00
Lonami Exo
d5cdda28c5
Change QrLogin to reduce room for error
2022-03-02 13:00:41 +01:00
Lonami Exo
48bd061562
Fix calls to remove_event_handler
2022-03-02 13:00:41 +01:00
Lonami Exo
d1dba60278
Fix begin/end_takeout
2022-03-02 13:00:41 +01:00
Lonami Exo
ab150bf457
Fix get_tos usage of expiry
...
expires is actually a timestamp, not seconds
2022-03-02 13:00:41 +01:00
Lonami Exo
0bc598c121
Stop auto-accepting ToS on sign_up, add get_tos instead
2022-02-17 12:40:38 +01:00
Lonami Exo
80d44cb75b
Fix sign_up call to sign_in
2022-02-17 12:40:38 +01:00
Lonami Exo
94ac667e79
Support direct sign_in with code and password
2022-02-17 12:40:38 +01:00
Lonami Exo
77a98fed2c
Make phone and password kwargs in start
2022-02-17 12:40:38 +01:00
Lonami Exo
5c6fdf9a71
Return custom User from sign_in/sign_up
2022-02-17 12:40:38 +01:00
Lonami Exo
1029c38d7e
Remove phone and hash from sign_up
2022-02-17 12:40:38 +01:00
Lonami Exo
90bd5de74a
Remove phone and hash from sign in
2022-02-17 12:40:38 +01:00
Lonami Exo
df0e710fa1
Add a custom SentCode type
2022-02-17 12:40:38 +01:00
Lonami Exo
4258ce2bc8
Make is_connected a property
...
This is consistent with the rest of is_ properties
2022-02-17 12:40:38 +01:00
Lonami Exo
483e2aadf1
Begin updating the way updates are built
2022-02-17 12:40:38 +01:00
Lonami Exo
d1836ab899
Review errors and remove some type checks
...
If the type is not correct, we can let the API fail instead.
This way, if the API supports more types in the future, there
does not need to be an update. This has affected participant
permissions in groups.
2022-02-17 12:40:38 +01:00
Shrimadhav U K
c45b919109
Add a friendly method to react to messages ( #3681 )
2022-02-16 11:26:09 +01:00
Lonami Exo
9b4808a558
Remove PackedChat
...
In favour of using the session entity type consistently.
2022-02-08 11:31:24 +01:00
Lonami Exo
07faa53c5a
Remove client.edit_folder
...
Not happy with the design, and keeping it would mean
having to maintain it. It can be added back with a better design.
2022-02-08 10:23:55 +01:00
Lonami Exo
84b016cf1c
Make more TLObject methods private
...
Even though raw API is somewhat necessary at times,
these methods should remain implementation details.
2022-02-08 10:02:59 +01:00
Lonami Exo
1f3ce07594
Manually set random_id in requests
...
Getting the response message relies on this ID.
Because requests are now immutable, and resolve sets the random_id,
the method to obtain the response message would lack the random_id,
as the original request is not touched by resolve.
2022-02-07 11:30:27 +01:00
Lonami Exo
c220d50ed8
Add back _phone_code_hash
...
There isn't really a better way to do this.
2022-02-07 11:30:27 +01:00
Lonami Exo
faaa038825
Fix RpcError catch-all
2022-02-07 11:30:27 +01:00
Lonami Exo
d87b68a756
Fix direct mutation of objects in friendly methods
2022-02-07 11:30:27 +01:00
Lonami Exo
ae43a47602
Update iter_ usages with get_
2022-02-07 11:30:27 +01:00
Lonami Exo
56faccf151
Fix and update usage of parse_mode
2022-02-07 11:30:27 +01:00
Lonami Exo
96b4059ae8
Properly handle exception cases during update dispatch
2022-02-07 11:30:27 +01:00
Lonami Exo
ab6d60dab2
Fix event building
2022-02-07 11:30:27 +01:00
Lonami Exo
d490cf0f70
Add missing NotResolved import
2022-02-07 11:30:27 +01:00
Lonami Exo
46ba9696aa
Fix add_handler auto-type detection
2022-02-07 11:30:27 +01:00
Devesh Pal
acc512683c
Update to layer 138 ( #3698 )
2022-02-04 14:22:51 +01:00
Lonami Exo
a3a60e6dca
Add proper warnings when applying filters to updates fails
2022-01-28 21:07:55 +01:00
Lonami Exo
a1fe80557a
Implement dispatching events
2022-01-28 21:07:55 +01:00
Lonami Exo
0802f7e6b2
Rework methods to manage event handlers
2022-01-28 21:07:55 +01:00
Lonami Exo
9726169a8c
Begin unification of event builders and events
2022-01-28 21:07:53 +01:00
Lonami Exo
f2ef0bfceb
Make upload_file private
2022-01-28 21:06:43 +01:00
Lonami Exo
070af28e85
Make raw API types immutable
2022-01-28 21:06:43 +01:00
Lonami Exo
d426099bf5
Remove input_peer parameter from get_me
2022-01-28 21:06:43 +01:00
Devesh Pal
7778e54467
Allow restricting channels ( #3679 )
2022-01-24 21:09:51 +01:00