Commit Graph

  • 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
  • 4af5085f17 Sort namespaces and types when generating the docs (#87) Lonami Exo 2017-05-19 10:36:20 +0200
  • 57d99eabbb Fix docs generating invalid links for Vector results (#87) Lonami Exo 2017-05-19 10:01:58 +0200
  • 41d1dac1c6 Fix docs example using non-existing variable (#87) Lonami Exo 2017-05-19 09:46:46 +0200
  • d6bec7481e Use case insensitive search on the docs (#87) Lonami Exo 2017-05-19 09:44:15 +0200
  • c4447bf226 Distinguish between vector type and constructor (fix #81) Lonami Exo 2017-05-19 09:41:22 +0200
  • b84641023a Handle more cases where the type is a date Lonami Exo 2017-05-19 09:30:30 +0200
  • 0ef32a7d78 Fix syntax of exception throwing here and there Dmitry D. Chernov 2017-05-19 15:48:01 +1000
  • 7f787affc6 MtProtoSender: Fix crash on receiving unknown RPC results Such RPC results may arrive after reconnection, for example. Dmitry D. Chernov 2017-05-19 13:09:22 +1000
  • befdcc586c Fix syntax of exception throwing here and there Dmitry D. Chernov 2017-05-19 15:48:01 +1000
  • 7802f50575 MtProtoSender: Fix crash on receiving unknown RPC results Such RPC results may arrive after reconnection, for example. Dmitry D. Chernov 2017-05-19 13:09:22 +1000
  • 930dc99f31 Serialize flag_indicator argument to flags:# Birger Jarl 2017-05-13 06:01:39 +0300
  • cad3fd13ce Serialize flag_indicator argument to flags:# Birger Jarl 2017-05-13 06:01:39 +0300
  • 2ff419a5e7 TelegramClient: Remove redundant check for adding update handlers Adding update handlers when not authorized makes no negative consequences. Also, check was implemented badly - update handlers can be added after logout/disconnect, for example. Dmitry D. Chernov 2017-05-11 21:16:46 +1000
  • b7ed6d9ec1 TelegramClient: Fix log_out() returning nothing on success Dmitry D. Chernov 2017-05-11 15:46:27 +1000
  • b94ffeea9f TelegramClient: Remove redundant check for adding update handlers Adding update handlers when not authorized makes no negative consequences. Also, check was implemented badly - update handlers can be added after logout/disconnect, for example. Dmitry D. Chernov 2017-05-11 21:16:46 +1000
  • d0284c2bd3 Fix is_user_authorized failing on log_out (closes #76) Lonami Exo 2017-05-11 14:11:15 +0200
  • f64244eb44 Fix TelegramClient not actually supporting temp sessions (#78) Lonami Exo 2017-05-11 14:08:38 +0200
  • 445e73e0d1 TelegramClient: Fix log_out() returning nothing on success Dmitry D. Chernov 2017-05-11 15:46:27 +1000
  • 048bc81b74 MtProtoSender: Use threading.Event instead of boolean flags Dmitry D. Chernov 2017-05-10 03:41:16 +1000
  • 7ffe2b3130 TcpClient: Combine two identical function calls into one Dmitry D. Chernov 2017-05-10 03:05:14 +1000
  • 15e06f9ce2 TcpClient: Use threading.Event instead of boolean flag Dmitry D. Chernov 2017-05-10 03:01:44 +1000
  • 6baad93938 SourceBuilder: Don't perform stream flushing twice stream.close() always perform flush by itself Dmitry D. Chernov 2017-05-10 02:41:00 +1000
  • debf5b5962 MtProtoSender: Use threading.Event instead of boolean flags Dmitry D. Chernov 2017-05-10 03:41:16 +1000
  • 1d70fa1076 TcpClient: Combine two identical function calls into one Dmitry D. Chernov 2017-05-10 03:05:14 +1000
  • d9306d1e34 TcpClient: Use threading.Event instead of boolean flag Dmitry D. Chernov 2017-05-10 03:01:44 +1000
  • 6ac364be3d SourceBuilder: Don't perform stream flushing twice stream.close() always perform flush by itself Dmitry D. Chernov 2017-05-10 02:41:00 +1000
  • 5d66b4d554 Update README.rst Lonami Exo 2017-05-08 16:08:45 +0200
  • c367aa9bc9 Revert a49e50d as suggested by @cher-nov (remove __del__) Lonami Exo 2017-05-08 16:01:53 +0200
  • db79ff08c7 Avoid crash on certain terminals (workaround for #70) Lonami Exo 2017-05-07 13:33:35 +0200
  • 49a76f23f5 Remove offending characters from #70 Lonami Exo 2017-05-07 13:05:49 +0200
  • a49e50d04d TelegramClient: Perform disconnection on class destruction (#74) Dmitry D. Chernov 2017-05-06 21:40:42 +1000
  • 598851f869 TelegramClient: Perform disconnection on class destruction Dmitry D. Chernov 2017-05-06 21:35:09 +1000
  • ff469acb81 TelegramClient.get_dialogs: Rename 'count' argument to 'limit' (#72) Dmitry D. Chernov 2017-05-05 23:11:48 +1000
  • 5069006648 TelegramClient.get_dialogs: Rename 'count' argument to 'limit' Dmitry D. Chernov 2017-05-05 22:37:02 +1000
  • 8ffec6b8be Improve handling invalid UTF-8 strings (#68) Gholamhossein Tavasoli 2017-05-03 15:32:44 +0430
  • ef76da7e51 Update binary_reader.py Gholamhossein Tavasoli 2017-05-03 14:41:55 +0430
  • 649620af1d Update binary_reader.py Gholamhossein Tavasoli 2017-05-03 11:24:59 +0430
  • 3d66062eb4 Ignore invalid utf-8 strings (closes #49) Lonami Exo 2017-05-02 16:16:36 +0200
  • 6069188b54 MtProtoPlainSender was not connecting (closes #62) Lonami Exo 2017-04-29 20:57:08 +0200
  • fbe65c2dfb Reconnect on timeout inside timeout (#61) Lonami Exo 2017-04-29 11:07:32 +0200
  • a7595347f3 Make the UpdatesThread a daemon (closes #60) Lonami Exo 2017-04-29 10:41:56 +0200
  • 89326c998a Workaround for #50 suggested by @strayge (send not only Ping) Lonami Exo 2017-04-21 14:02:21 +0200
  • 192eb3cf57 Fix crash when receiving MessageServices (closes #52) Lonami Exo 2017-04-17 09:36:24 +0200
  • 4421c3ac7a Update to layer 66 Lonami Exo 2017-04-15 18:10:27 +0200
  • ef3cdf9e23 Fix constructor count showing as negative Lonami Exo 2017-04-15 15:34:49 +0200
  • 81dfcc4102 Improve the docs navigation Lonami Exo 2017-04-15 14:15:40 +0200
  • ba83edd8f5 Add search to the docs Lonami Exo 2017-04-15 13:58:21 +0200
  • 2ecd181c25 Externalize the core index on the docs Lonami Exo 2017-04-15 13:23:17 +0200
  • fbc7aabf13 Update to v0.8 v0.8 Lonami Exo 2017-04-14 15:33:05 +0200
  • 6b2c0271ae Fix updates thread crashing on logout Lonami Exo 2017-04-14 15:28:15 +0200
  • f6c34f8ba2 Add current time to the log output Lonami Exo 2017-04-12 10:35:07 +0200
  • 1d2420d549 Add more informative error message when invoking disconnected Lonami Exo 2017-04-11 10:25:09 +0200
  • 4fa43f231f Fix "Must wait error" not causing updates thread to sleep Lonami Exo 2017-04-11 09:58:22 +0200
  • 6d1ce4d48d Let only the LogOut request be confirmed via ack Lonami Exo 2017-04-11 09:52:44 +0200
  • 3e611cdd42 Revert "Workaround for None results" Lonami Exo 2017-04-11 09:46:26 +0200
  • 6e4c437340 Workaround for None results (#47) Lonami Exo 2017-04-10 09:34:58 +0200
  • f24d4f4a0e Fix updates thread not sleeping when handling pings Lonami Exo 2017-04-09 13:16:22 +0200
  • 1232e8f607 Add logging to MTProtoSender Lonami Exo 2017-04-09 13:14:04 +0200
  • 6add278f07 Update README with a link to the docs Lonami Exo 2017-04-08 14:16:26 +0200
  • 9428e73891 Core documentation index should really be at the root Lonami Exo 2017-04-08 14:07:36 +0200
  • df7f4bc47c Generate docs to the generated/ subfolder Lonami Exo 2017-04-08 14:04:32 +0200
  • 56a959a07d Generate core documentation Lonami Exo 2017-04-08 13:58:42 +0200
  • 356ed164f7 Don't link generic arguments on the docs Lonami Exo 2017-04-08 12:41:31 +0200
  • 64a1a69a5e Minor visual improvements to the docs Lonami Exo 2017-04-08 12:26:48 +0200
  • 877065d0ac Reuse code when writing the docs menu, add menu to indices Lonami Exo 2017-04-08 12:21:38 +0200
  • a4e8b3d2e5 Generate indices files on the documentation Lonami Exo 2017-04-07 21:06:49 +0200
  • edda87b81b Make use of the reusable docs writer class Lonami Exo 2017-04-07 20:18:01 +0200
  • b50a85bb93 Add a more reusable document writer class Lonami Exo 2017-04-07 20:07:55 +0200