Commit Graph

9 Commits

Author SHA1 Message Date
Lonami Exo
04ba2e1fc7 Revert disconnect() to be async again (#1133)
It's the only way to properly clean all background tasks,
which the library makes heavy use for in MTProto/Connection
send and receive loops.

Some parts of the code even relied on the fact that it was
asynchronous (it used to return a future so you could await
it and not be breaking).

It's automatically syncified to reduce the damage of being
a breaking change.
2019-03-21 12:21:00 +01:00
Lonami Exo
9cbc088b76 Make disconnect synchronous
This also fixes a bug when auto-reconnecting in MTProtoSender.
2018-10-16 11:56:17 +02:00
Lonami Exo
0e38ab412b Update examples to make them easier to run 2018-09-04 11:52:18 +02:00
Lonami Exo
3a0b091210 Better chat history for the GUI 2018-08-28 16:37:55 +02:00
Lonami Exo
40650f93ce Display chat history and invalid characters on the GUI 2018-08-28 15:55:28 +02:00
Lonami Exo
a1837431b6 Fix 3.5 compatibility for the GUI example 2018-08-02 22:18:01 +02:00
Lonami Exo
a495f542ef Fix message deletion, replies and chat IDs on the GUI 2018-08-02 21:48:37 +02:00
Lonami Exo
da5914c4a0 Support editing, deleting and replying in the GUI 2018-08-02 21:25:49 +02:00
Lonami Exo
01ede081ff Create a simple example using Tkinter GUI 2018-08-02 20:24:17 +02:00