Commit Graph

  • e3ab98815d Fix reconnect on TypeNotFoundError failing Lonami Exo 2017-09-18 10:21:53 +0200
  • e0e3947d2f Fix some misleading errors/documentation Lonami Exo 2017-09-18 09:37:20 +0200
  • 619c35986b Add new example Tanuj 2017-09-17 23:34:49 +0100
  • 2a3e5e5ed2 Handle BufferError's more gracefully Lonami Exo 2017-09-17 19:39:04 +0200
  • 78155a21bd Retry authentication for auth keys up to five times by default Lonami Exo 2017-09-17 19:14:36 +0200
  • e7a936222f Catch -404 BrokenAuthKeyError on .connect()'s .do_authentication Lonami Exo 2017-09-17 18:38:03 +0200
  • 940dfe6816 Fix process_updates=True preventing new sessions from signing in Lonami Exo 2017-09-17 18:13:58 +0200
  • 58fe39f060 Expose MtProtoSender.is_connected() and use it on .connect() Lonami Exo 2017-09-17 16:39:29 +0200
  • 05a8723d36 Catch calling .receive() when .sender is None on recv_thread Lonami Exo 2017-09-17 16:37:08 +0200
  • 12c12fdfaf Fix representing .stringify() for bytes with indent > 0 Lonami Exo 2017-09-17 16:35:35 +0200
  • 76b7420b63 Ignore TimeoutError when invoking a request Lonami Exo 2017-09-17 16:32:51 +0200
  • 2f0f6d4591 Remove initial_query leftovers Lonami Exo 2017-09-17 16:20:04 +0200
  • b14a7d9e68 Revert layer being a property Lonami Exo 2017-09-17 16:19:53 +0200
  • aea10b103b Rename generated layer variable to uppercase readonly property Lonami Exo 2017-09-17 16:17:55 +0200
  • c84e54b647 Get rid of the initial_query= parameter on .connect() Lonami Exo 2017-09-17 16:06:43 +0200
  • 2689b0750d Make DC options static Lonami Exo 2017-09-17 14:30:23 +0200
  • 59a4315c28 Avoid calling InitConnectionRequest when it's not needed Lonami Exo 2017-09-17 14:25:53 +0200
  • 29471f3bba Force obfuscated2 mode if api_id < 20 Lonami Exo 2017-09-15 11:49:39 +0200
  • 89907fcdd8 Merge 46c276e3b2 into 279eb110be kyasabu 2017-09-14 12:03:15 +0000
  • 46c276e3b2 Add startup script for simple use Kyasabu 2017-09-14 13:37:21 +0200
  • 279eb110be Update to v0.13.3 v0.13.3 Lonami Exo 2017-09-14 11:51:41 +0200
  • 12a39873f1 Workaround msg_seqno too low/high (closes #95) Lonami Exo 2017-09-14 11:50:38 +0200
  • 151e1623d3 Stop saving the session ID, sequence and time offset Lonami Exo 2017-09-14 11:44:42 +0200
  • 73fe7258d1 Modify .send_message to return the sent message object Lonami Exo 2017-09-13 12:00:27 +0200
  • d12fb5b924 Add an optional reply_to parameter to .send_message/media Lonami Exo 2017-09-13 11:51:23 +0200
  • 7043f4c9ba Add a convenience method to send voice notes Lonami Exo 2017-09-13 11:30:20 +0200
  • d79dccc923 Add a lock around TcpClient.close() to try avoiding None.close() Lonami Exo 2017-09-13 09:44:58 +0200
  • 1d36bbfbf4 Remove forgotten invalid code CdnDecrypter.finish_check (fix #243) Lonami Exo 2017-09-12 15:38:00 +0200
  • 3a5eab2e83 Fix infering random_id lists failing for ForwardMessages Lonami Exo 2017-09-12 10:32:11 +0200
  • a76c31ede2 Add lru_cache decorator to .get_entity() Lonami Exo 2017-09-11 12:53:39 +0200
  • 83f9cafabf Make .get_entity() public Lonami Exo 2017-09-11 11:54:32 +0200
  • 188b1c8816 Fix client reconnection not actually working Lonami Exo 2017-09-11 11:38:36 +0200
  • a2fdd4b196 Ignore InvalidChecksumError's Lonami Exo 2017-09-11 11:04:19 +0200
  • 48dead76ac Retry up to five times before giving up on a request Lonami Exo 2017-09-11 10:52:36 +0200
  • 880f5636be Move README-long.rst to the wiki hosted on GitHub Lonami Exo 2017-09-10 16:01:58 +0200
  • 8eabdad711 Remove confussion on issue template suggesting to remove last block Lonami Exo 2017-09-09 10:40:30 +0200
  • bce88446ef Fix incorrect condition causing updates to be ignored v0.13.2 Lonami Exo 2017-09-08 18:43:37 +0200
  • 54ba0661c6 Fix wrong variable name causing .connect() to fail Lonami Exo 2017-09-08 18:28:31 +0200
  • fa4042a80e Update to v0.13.2 Lonami Exo 2017-09-08 13:22:05 +0200
  • 2dea665721 New way to work with updates (#237) Lonami 2017-09-08 13:11:04 +0200
  • c81537bed0 Simplify the workflow with UpdateState exposing a single flag param Lonami Exo 2017-09-08 12:54:38 +0200
  • 25bbb20b0c Use RLocks properly on MtProtoSender (only needed on net IO) Lonami Exo 2017-09-07 21:32:46 +0200
  • 16a5ab3070 Add back the periodic PingRequest Lonami Exo 2017-09-07 21:23:37 +0200
  • a24b4020fe Allow adding update handlers without the need to poll updates Lonami Exo 2017-09-07 20:29:51 +0200
  • b8e881b6b6 Add basic updates processing to ignore updates with lower .pts Lonami Exo 2017-09-07 20:17:40 +0200
  • d237375208 Allow adding callback methods to UpdateState Lonami Exo 2017-09-07 18:58:54 +0200
  • d4f36162cd Create and use UpdateState to .process() unhandled TLObjects Lonami Exo 2017-09-07 18:49:08 +0200
  • 49e884b005 Raise AssertionError if trying to invoke requests from ReadThread Lonami Exo 2017-09-07 18:25:17 +0200
  • 06b2834c02 Fix GetContactsRequest using str instead int (layer 70->71) (#234) Lonami Exo 2017-09-07 10:44:54 +0200
  • edf325d580 Fix username regex (#235) Birger Jarl 2017-09-07 10:41:49 +0300
  • 8fe6724448 Fixed username regex Birger Jarl 2017-09-07 00:25:25 +0300
  • a93abed737 Add ISSUE_TEMPLATE for GitHub Lonami Exo 2017-09-05 19:14:24 +0200
  • cd40f4a949 Add RPCError for MESSAGE_NOT_MODIFIED (#231) xkdnyan 2017-09-06 00:06:35 +0900
  • 755c4e3b57 Handle RPCError MESSAGE_NOT_MODIFIED (400) xkdnyan 2017-09-05 23:55:18 +0900
  • 49555ad018 Stick to the offset and limit CdnFileHashes dictates (#222) Lonami Exo 2017-09-05 16:43:53 +0200
  • 2924912931 Fix CDN downloads not always calling GetCdnConfigRequest (#222) Lonami Exo 2017-09-05 16:11:02 +0200
  • d5cd59de8a Update to v0.13.1 v0.13.1 Lonami Exo 2017-09-04 20:34:05 +0200
  • a38381665c Support invoking requests from within the ReadThread (fixes #226) Lonami Exo 2017-09-04 20:28:41 +0200
  • fe86b88bef Make .sign_up() return the logged user just like .sign_in() Lonami Exo 2017-09-04 18:07:20 +0200
  • 15fd5390ae Optimize imports Lonami Exo 2017-09-04 17:18:33 +0200
  • 97cab7347b Make lint happier Lonami Exo 2017-09-04 17:10:04 +0200
  • 7f700c3bc1 Remove unused attributes and methods from the base TLObject class Lonami Exo 2017-09-04 16:39:16 +0200
  • 0e45f46ad5 Properly ignore core types when generating code Lonami Exo 2017-09-04 16:29:00 +0200
  • e8cdcf369d Sort generated code by name for more predictable results Lonami Exo 2017-09-04 15:11:46 +0200
  • c5b562d4f6 Move the from tlobject import TLObject to only the top of the file Lonami Exo 2017-09-04 14:08:36 +0200
  • 64f1031a45 Move comments from auto-generated code to the generator itself Lonami Exo 2017-09-04 14:05:30 +0200
  • c3f679597c Move the auto-generated notice to only the top of the file Lonami Exo 2017-09-04 13:57:40 +0200
  • e83b250a22 Replace generated directory modules with simply files Lonami Exo 2017-09-04 13:51:47 +0200
  • 7eab28206b Change the code generator to use a single file per namespace Lonami Exo 2017-09-04 13:44:39 +0200
  • dc238df2e0 Update to v0.13 v0.13 Lonami Exo 2017-09-04 12:18:45 +0200
  • a5d86b4572 Update to layer 71 Lonami Exo 2017-09-04 11:54:37 +0200
  • 6f0bd14c2f Use an Enum for the ConnectionMode and support specifying it Lonami Exo 2017-09-04 11:24:10 +0200
  • 9ad42a1e41 Add libssl interface for AES CTR Christian Stemmle 2017-09-03 21:03:58 +0200
  • 62a52679f4 Ensure the state of the requests is clean before invoking them Lonami Exo 2017-09-03 13:45:13 +0200
  • 27408b46da Only reconnect from background thread if .disconnect wasn't called Lonami Exo 2017-09-03 13:44:52 +0200
  • 626778bd32 Ignore EBADF when closing the socket Lonami Exo 2017-09-03 13:44:29 +0200
  • 68cdc9eaf1 Treat OSError.errno == EBADF as a ConnectionResetError Lonami Exo 2017-09-03 11:54:26 +0200
  • f8f389c850 Fix ack requests removing pending requests when they shouldn't Lonami Exo 2017-09-03 11:21:42 +0200
  • db6fd4bdc2 Fix RPC errors being ignored due to modifying the wrong attribute Lonami Exo 2017-09-03 11:19:28 +0200
  • 83f3f66113 Fix MtProtoSender never clearing self._pending_receive requests Lonami Exo 2017-09-03 10:50:55 +0200
  • fa34c4bb77 Handle ConnectionResetError on background thread (removed on 9bc1f64) Lonami Exo 2017-09-03 10:05:18 +0200
  • 2a5d08b23d Turn socket.timeout error into the more general TimeoutError Lonami Exo 2017-09-03 10:01:00 +0200
  • 494b82ea9d Fix check to avoid (dis)connecting if already (dis)connected Lonami Exo 2017-09-03 09:59:37 +0200
  • 4de4026bb3 Move the "constant read" thread to the main TelegramClient Lonami Exo 2017-09-03 09:56:10 +0200
  • 69d182815f Merge branch 'constant_read' Lonami Exo 2017-09-02 21:51:11 +0200
  • 9bc1f64efe Move update handling to the MtProtoSender, being functional again Lonami Exo 2017-09-02 21:45:27 +0200
  • 21eaf8bd72 Allow setting whether the MtProtoSender should use constant_read Lonami Exo 2017-09-02 21:27:11 +0200
  • 863d2e8368 Make confirm_received a flag, avoid race conditions, fix bg RPCError Lonami Exo 2017-09-02 20:41:00 +0200
  • b908296efa Remove unused TcpClien.read(timeout=...) param, change other accessors Lonami Exo 2017-09-02 19:33:42 +0200
  • 36f51e1e3f Remove ability to TcpClient.cancel_read() Lonami Exo 2017-09-02 19:14:11 +0200
  • cc280a129d Remove TcpClient.write/read shared locks Lonami Exo 2017-09-02 18:49:29 +0200
  • 43b79c3d36 Add a thread to constantly read messages from the network Lonami Exo 2017-09-02 18:27:22 +0200
  • 49c5cf745f Fix SignUpRequest using an incorrectly named parameter Lonami Exo 2017-09-02 16:53:29 +0200
  • 0197271f74 Fix SignUpRequest using an incorrectly named parameter Lonami Exo 2017-09-02 16:52:56 +0200
  • 5f4e79542f Restore updates thread on reconnection and fix restarting it alexvelickiy 2017-08-31 19:57:32 +0300
  • 9fe7a53303 Fixed multiple start() of same UpdatesThread. Alex Velickiy 2017-08-31 19:28:39 +0300
  • 876ec218f8 added restoring running updates thread on reconnection. Alex Velickiy 2017-08-31 17:31:18 +0300
  • bea1b7f526 Preserve backward compatibility with old .sign_in() code Lonami Exo 2017-08-31 10:38:53 +0200
  • 5f636fdf31 Let .sign_in() call .send_code_request() Lonami 2017-08-31 10:34:09 +0200
  • 8bff10d956 Fix get_input_* not skipping None entities (#215) Lonami Exo 2017-08-30 11:12:25 +0200