Commit Graph

  • a79520e37f Support configuring SOCKS proxy in the example zed 2017-06-17 00:25:57 +0300
  • 2b85463ce6 Don't ignore more possible updates on .receive_updates() (closes #117) Lonami Exo 2017-06-16 15:36:47 +0200
  • c304ee903f Trigger reconnection on BrokenPipeError and InvalidChecksumError Goblenus 2017-06-16 15:59:10 +0300
  • 09da33b469 (Fix) Reconnecting tcp, MTProto sessions, when they are broken Goblenus 2017-06-16 15:08:55 +0300
  • 92b4125b2b Update to v0.11 v0.11 Lonami Exo 2017-06-16 10:11:03 +0200
  • e7b0c06ca5 Make .get_input_user faster when the right type is given Lonami Exo 2017-06-16 10:01:05 +0200
  • 279ee81bc3 Stop querying terminal size and other warnings (#115) Lonami Exo 2017-06-16 09:34:09 +0200
  • 13199f737e Handle more cases on .get_display_name feodoran 2017-06-16 09:11:49 +0200
  • 4dedfbf236 Add '(No name)' fallback to get_display_name Christian Stemmle 2017-06-15 17:52:09 +0200
  • 86d45cc276 Improve .get_input_peer and use it only when creating requests* Lonami Exo 2017-06-15 17:03:59 +0200
  • b8e46446ba Automatically call .get_input_peer on the requests that need it Lonami Exo 2017-06-15 16:35:40 +0200
  • c02fbae5aa Allow creating a new parallel connection (closes #102) Lonami Exo 2017-06-15 15:50:44 +0200
  • 3fccfd40e6 Show error messages on non-specialized error classes (closes #113) Lonami Exo 2017-06-15 15:25:05 +0200
  • 92088383f7 Fix get_message_history not returning sender on channels (closes #110) Lonami Exo 2017-06-15 09:41:01 +0200
  • 45fb1f3f26 Exclude empty first_name in get_display_name Christian Stemmle 2017-06-15 00:02:36 +0200
  • fc915b2284 Fix get_message_history ignoring chats and enhance find_user_or_chat Lonami Exo 2017-06-14 14:06:35 +0200
  • 96d8ca94cf Move TelegramClient.list_sessions to *Session.list_session Lonami Exo 2017-06-14 13:56:42 +0200
  • 56bf5f7c87 Fix broken link from pypi in README.rst zed 2017-06-14 00:05:15 +0300
  • 9fd3c72b57 fix broken link in README zed 2017-06-13 23:38:04 +0300
  • 9e07a2580c Fix extra line being appended on empty .to_dict()'s Lonami Exo 2017-06-13 19:46:16 +0200
  • d8afb7e548 Also except BlockingIOError on TcpClient.send() Lonami Exo 2017-06-12 10:44:04 +0200
  • 769692959f Make the TLGenerator class a lot more readable Lonami Exo 2017-06-12 10:43:43 +0200
  • 68a625b82b Try to adhere to the 80-characters limit Lonami Exo 2017-06-12 10:16:24 +0200
  • 76166cd1ec Add .to_dict() to the generated types Goblenus 2017-06-12 10:53:26 +0300
  • f083b88f59 (Fix) Fix api_id type mismatch Goblenus 2017-06-11 23:42:04 +0300
  • 38d0d9aea4 (Ref) Slightly refactor Goblenus 2017-06-12 01:23:26 +0300
  • 7f47d95acc (Fix) Fix api_id type mismatch Goblenus 2017-06-11 23:42:04 +0300
  • 921e2eae54 (Add) Add to_dict() method Goblenus 2017-06-11 23:19:04 +0300
  • 1ca41b5854 Automatically infer the value for 'random_id' parameters Lonami Exo 2017-06-11 19:16:59 +0200
  • 3ed59d08e5 Fix commit 65912f9 by properly skipping lost messages Lonami Exo 2017-06-11 17:53:53 +0200
  • 65912f926b Allow to send more than one request before receiving them (#105) Lonami Exo 2017-06-11 14:58:16 +0200
  • c6acd6adc5 Use only ASCII characters on the code (closes #104) Lonami Exo 2017-06-10 13:39:37 +0200
  • 5c138977c3 Do not cancel UpdatesThread .receive() on reconnection Lonami Exo 2017-06-10 13:16:37 +0200
  • a73be04da7 Move connection parameters to the session Lonami Exo 2017-06-10 13:15:04 +0200
  • 1119a2737a Remove markdown "parser" since that's not Telethon-specific Lonami Exo 2017-06-10 13:00:39 +0200
  • 44ab85962b Completely change errors (make one class for each) Lonami Exo 2017-06-10 11:47:51 +0200
  • 5df4716164 Add errors related to #103 Lonami Exo 2017-06-10 10:08:08 +0200
  • 7adb4f09d6 Slightly reorganise the project structure Lonami Exo 2017-06-09 16:13:39 +0200
  • ba5bfa105f Use memoryview() on TcpClient.write() instead slicing the data Lonami Exo 2017-06-09 11:50:30 +0200
  • c6645a555d Prefer BufferedWriter over BinaryWriter for socket operations Lonami Exo 2017-06-09 11:42:39 +0200
  • 5494cb15eb "Don't go nuts switching back and forth between (non-)blocking" Lonami Exo 2017-06-09 11:26:59 +0200
  • 40616ba704 Support arbitrary file objects for .download_file() and update README Lonami Exo 2017-06-09 11:12:56 +0200
  • 40f4c2533a Incredibly improve downloading media on different DCs* Lonami Exo 2017-06-09 10:50:40 +0200
  • efd1c1ba64 Always acknowledge received errors for server not to resend them Lonami Exo 2017-06-09 10:46:39 +0200
  • 639a17aa5a Cache exported TelegramBareClients instead MtProtoSenders Lonami Exo 2017-06-09 10:35:19 +0200
  • cf65e5b1cf Get rid of signature warnings and use nicer *args instead Lonami Exo 2017-06-08 16:59:47 +0200
  • b760f0de50 Fix reconnection (InvalidDC did not occur on .connect())* Lonami Exo 2017-06-08 16:51:20 +0200
  • 6a043b7371 Fix Session not being able to save auth_key=None Lonami Exo 2017-06-08 16:45:09 +0200
  • d788d30de2 Move connect() parameters to init and ignore signature warnings Lonami Exo 2017-06-08 16:23:05 +0200
  • a07c7bd0d0 Move InteractiveClient to examples/ (and stop shipping it to pip) Lonami Exo 2017-06-08 14:00:27 +0200
  • 88f87f6de2 Major TelegramClient rewrite, split it into TelegramBareClient* Lonami Exo 2017-06-08 13:12:57 +0200
  • 6922eb3d39 Update to v0.10.1 v0.10.1 Lonami Exo 2017-06-07 20:15:27 +0200
  • 4a2b6e7fa8 Don't start another thread unless an update handler is added* Lonami Exo 2017-06-07 20:08:16 +0200
  • 1860054ec0 Make generate_sequence() thread-safe and move it to Session Lonami Exo 2017-06-07 12:00:01 +0100
  • 49ca5c00c7 Create a more upgrade-resistant JSON-based Session class Lonami Exo 2017-06-07 11:48:54 +0100
  • 8e3f3063f4 Add more errors and make them more descriptive Lonami Exo 2017-06-07 11:09:10 +0100
  • 5c7efdb04f Make use of relative imports everywhere, again Lonami Exo 2017-06-05 18:00:43 +0200
  • 5362f2578d Allow using lists and dicts for passing proxy settings Dmitry D. Chernov 2017-06-05 14:04:01 +1000
  • cd9550b228 Allow using lists and dicts for passing proxy settings Dmitry D. Chernov 2017-06-05 14:04:01 +1000
  • 3de398bae6 Sort constructors on the documentation for predictable results Lonami Exo 2017-06-04 20:21:45 +0200
  • 2f00033683 Add a nice button to the docs to copy the import code Lonami Exo 2017-06-04 19:57:20 +0200
  • cf6f300df1 Improve .is_user_authorized() and add a .get_me() method Lonami Exo 2017-06-04 17:24:08 +0200
  • 7acfd0c6c9 Update to v0.10 and some minor grammar fixes v0.10 Lonami Exo 2017-06-03 13:36:41 +0200
  • b472421b8a Allow specifying custom version/lang code/etc on client.connect Lonami Exo 2017-06-03 13:24:27 +0200
  • 06db6c3823 Allow integer-only session name and hash for the example Lonami Exo 2017-06-03 13:08:25 +0200
  • 153cbfd350 Use more straightforward calls of hashlib.sha1/sha256 Lonami Exo 2017-06-02 16:49:03 +0200
  • 6b4f2abb96 Fix disconnect and reconnect for exported senders (#53) Lonami Exo 2017-05-30 13:27:23 +0200
  • 097d1669b2 Allow invoking requests on different DCs (#53) Lonami Exo 2017-05-30 13:03:14 +0200
  • a427465231 Tidy up working with different DCs Lonami Exo 2017-05-30 12:14:29 +0200
  • d321096714 Tidy if/else branch on _recreate_socket Lonami Exo 2017-05-30 11:42:14 +0200
  • 2399b7e55e Remove try/except if a proxy was used, make more members private Lonami Exo 2017-05-30 10:40:33 +0200
  • 0b9d76bda1 Replace library print()'s with calls to _logger Lonami Exo 2017-05-30 10:24:08 +0200
  • fb4885aed0 Trigger automatic reconnection if server kicks us (#94) Lonami Exo 2017-05-30 10:11:18 +0200
  • 6e1798d6ac Update README.rst Lonami Exo 2017-05-29 21:36:51 +0200
  • 7c84c72f06 Minor change to make the code more pythonic Lonami Exo 2017-05-29 21:27:20 +0200
  • 042e3069a9 Move UpdatesThread from MtProtoSender to TelegramClient Lonami Exo 2017-05-29 21:24:47 +0200
  • ebe4232b32 Change the way in which updates are read and handled Lonami Exo 2017-05-29 20:41:03 +0200
  • ae1dbc63da Handle UnicodeEncodeError's in a cleaner way Lonami Exo 2017-05-29 17:07:09 +0200
  • 452532cce7 Make certain methods and members private Lonami Exo 2017-05-29 17:06:48 +0200
  • 63b1881c83 Raise FloodWaitError instead sleeping Lonami Exo 2017-05-29 16:46:17 +0200
  • 7f84374e98 Attempt at fixing msg_id too low/high (#95) Lonami Exo 2017-05-26 16:39:59 +0200
  • 289baa0fed Show return type on the generated documentation too Lonami Exo 2017-05-24 19:22:03 +0200
  • fabf806979 Add more errors, update to v0.9.1 v0.9.1 Lonami Exo 2017-05-23 10:31:52 +0200
  • 9b5d1b02e0 Add return type to the docs of the generated code Lonami Exo 2017-05-23 10:10:01 +0200
  • e60c70c1a7 Add more descriptive errors for get_input_peer (#93) Lonami Exo 2017-05-23 09:45:48 +0200
  • 7eaa393271 Show types containing the current type as a member on docs Lonami Exo 2017-05-22 17:28:06 +0200
  • b477895830 Enable printing of UTF-8, improvement for #70 Santiago Reig 2017-05-21 23:57:13 +0200
  • 398ac88a7f Enable printing of UTF-8, improvement for #70 Santiago Reig 2017-05-21 23:57:13 +0200
  • 02a847b64a Make lint happier Lonami Exo 2017-05-21 13:59:16 +0200
  • 63c89af983 Use relative imports always where possible Lonami Exo 2017-05-21 13:02:54 +0200
  • ca80b05694 Add shebangs and set proper file permissions Lonami Exo 2017-05-20 15:58:44 +0200
  • fb9104417e Add more errors, change the way InvalidDC is created Lonami Exo 2017-05-20 15:25:07 +0200
  • befc7a5657 Fix layer 66 not being the real layer 66 Lonami Exo 2017-05-20 11:52:17 +0200
  • eb7fb2ac24 Make logging a lot less intrusive Lonami Exo 2017-05-20 11:49:09 +0200
  • 6550d83d42 Fix closed sockets not being recreated as they should Lonami Exo 2017-05-20 11:34:23 +0200
  • 468033fa7e Avoid counterintuitive automatic connection Lonami Exo 2017-05-20 11:33:37 +0200
  • bbd3eb7c28 Raise an exception if recv() returned 0 bytes See for details: https://docs.python.org/3/howto/sockets.html "When a recv returns 0 bytes, it means the other side has closed (or is in the process of closing) the connection. You will not receive any more data on this connection. Ever." Dmitry D. Chernov 2017-05-20 18:34:05 +1000
  • 3cb80991a1 Raise an exception if recv() returned 0 bytes See for details: https://docs.python.org/3/howto/sockets.html "When a recv returns 0 bytes, it means the other side has closed (or is in the process of closing) the connection. You will not receive any more data on this connection. Ever." Dmitry D. Chernov 2017-05-20 18:34:05 +1000
  • 3c3946e6f1 Don't start the updates thread until signed in Lonami Exo 2017-05-19 21:44:50 +0200
  • 2f2ee15efd Update to v0.9 v0.9 Lonami Exo 2017-05-19 12:46:17 +0200