Commit Graph

17 Commits

Author SHA1 Message Date
Lonami Exo
c914a92dcf Start using the new Sender and Chat Getter interface 2022-02-17 12:40:38 +01:00
Lonami Exo
4b477e5b27 Add some missing filters 2022-02-07 11:30:27 +01:00
Lonami Exo
ab6d60dab2 Fix event building 2022-02-07 11:30:27 +01:00
Lonami Exo
055eca49ea Introduce some filters 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
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
Devesh Pal
539e3cb808
Add new features from new layer (#3676)
Updated some documentation regarding raw API.
get_permissions has been adjusted.
Expose more parameters when sending messages.
Update chat action.
Support sending spoilers.
Update buttons.
2022-01-24 13:15:02 +01:00
Lonami Exo
f8264abb5a Clean-up client's __init__ and remove entity cache
Entity cache uses are removed. It was a source of ever-growing memory
usage that has to be reworked. This affects everything that tried to
obtain an input entity, input sender or input chat (such as the
SenderGetter or calls to _get_entity_pair). Input entities need to be
reworked in any case.

Its removal also affects the automatic cache of any raw API request.

Raise last error parameter is removed, and its behaviour made default.

The connection type parameter has been removed, since users really have
no need to change it.

A few more attributes have been made private, since users should not
mess with those.
2022-01-18 12:56:17 +01:00
Lonami Exo
a62627534e Get rid of client.loop
Instead, use the asyncio-intended way of implicit loop.
2022-01-16 13:51:23 +01:00
Lonami Exo
010ee0813a Rename send_read_acknowledge 2022-01-09 12:18:15 +01:00
Hackintosh 5
8de375323e Cleanup events code 2021-12-11 21:46:23 +01:00
penn5
8d1379f3d4 Remove _finish_init from chataction.py
This method was removed in 334a847de7
2021-12-11 21:46:23 +01:00
penn5
d3ef3c69c8 Remove _finish_init from newmessage.py
This method was removed in 334a847de7
2021-12-11 21:46:23 +01:00
Lonami Exo
1762f554df Make events subpackage private 2021-09-24 21:11:50 +02:00