Dan
1179a5b994
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/client.py
# pyrogram/session/session.py
2019-03-25 11:52:54 +01:00
Dan
b5c6db6db0
Refactor project and move errors namespace out from pyrogram.api
2019-03-25 11:23:45 +01:00
Dan
84fb959c8c
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/client.py
# pyrogram/client/methods/bots/answer_callback_query.py
# pyrogram/client/methods/bots/get_game_high_scores.py
# pyrogram/client/methods/bots/get_inline_bot_results.py
# pyrogram/client/methods/bots/request_callback_answer.py
# pyrogram/client/methods/bots/send_game.py
# pyrogram/client/methods/bots/send_inline_bot_result.py
# pyrogram/client/methods/bots/set_game_score.py
# pyrogram/client/methods/chats/delete_chat_photo.py
# pyrogram/client/methods/chats/export_chat_invite_link.py
# pyrogram/client/methods/chats/get_chat.py
# pyrogram/client/methods/chats/get_chat_member.py
# pyrogram/client/methods/chats/get_chat_members.py
# pyrogram/client/methods/chats/get_chat_members_count.py
# pyrogram/client/methods/chats/get_dialogs.py
# pyrogram/client/methods/chats/iter_chat_members.py
# pyrogram/client/methods/chats/iter_dialogs.py
# pyrogram/client/methods/chats/join_chat.py
# pyrogram/client/methods/chats/kick_chat_member.py
# pyrogram/client/methods/chats/leave_chat.py
# pyrogram/client/methods/chats/pin_chat_message.py
# pyrogram/client/methods/chats/promote_chat_member.py
# pyrogram/client/methods/chats/restrict_chat_member.py
# pyrogram/client/methods/chats/set_chat_description.py
# pyrogram/client/methods/chats/set_chat_photo.py
# pyrogram/client/methods/chats/set_chat_title.py
# pyrogram/client/methods/chats/unban_chat_member.py
# pyrogram/client/methods/chats/unpin_chat_message.py
# pyrogram/client/methods/contacts/add_contacts.py
# pyrogram/client/methods/contacts/delete_contacts.py
# pyrogram/client/methods/contacts/get_contacts.py
# pyrogram/client/methods/messages/delete_messages.py
# pyrogram/client/methods/messages/download_media.py
# pyrogram/client/methods/messages/edit_message_caption.py
# pyrogram/client/methods/messages/edit_message_media.py
# pyrogram/client/methods/messages/edit_message_reply_markup.py
# pyrogram/client/methods/messages/edit_message_text.py
# pyrogram/client/methods/messages/forward_messages.py
# pyrogram/client/methods/messages/get_history.py
# pyrogram/client/methods/messages/get_messages.py
# pyrogram/client/methods/messages/iter_history.py
# pyrogram/client/methods/messages/send_animation.py
# pyrogram/client/methods/messages/send_audio.py
# pyrogram/client/methods/messages/send_cached_media.py
# pyrogram/client/methods/messages/send_chat_action.py
# pyrogram/client/methods/messages/send_contact.py
# pyrogram/client/methods/messages/send_document.py
# pyrogram/client/methods/messages/send_location.py
# pyrogram/client/methods/messages/send_media_group.py
# pyrogram/client/methods/messages/send_message.py
# pyrogram/client/methods/messages/send_photo.py
# pyrogram/client/methods/messages/send_sticker.py
# pyrogram/client/methods/messages/send_venue.py
# pyrogram/client/methods/messages/send_video.py
# pyrogram/client/methods/messages/send_video_note.py
# pyrogram/client/methods/messages/send_voice.py
# pyrogram/client/methods/password/change_cloud_password.py
# pyrogram/client/methods/password/enable_cloud_password.py
# pyrogram/client/methods/password/remove_cloud_password.py
# pyrogram/client/methods/users/delete_user_profile_photos.py
# pyrogram/client/methods/users/get_user_profile_photos.py
# pyrogram/client/methods/users/get_users.py
# pyrogram/session/auth.py
# pyrogram/session/session.py
2019-03-16 19:49:38 +01:00
Dan
34b51b6481
Force keyword arguments for all TL types
2019-03-16 16:53:52 +01:00
Dan
4b73358922
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/session/session.py
2019-03-03 16:54:43 +01:00
Dan
e42599051c
Use a lower timeout when starting a session to speed up re-connections
...
Sometimes the server drops right after a successful connection and
pyrogram keeps waiting up 15 seconds (current WAIT_TIMEOUT) for the
first query to time out and start again a new connection.
2019-03-03 16:50:25 +01:00
Dan
7f79210ba3
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/dispatcher/dispatcher.py
# requirements.txt
2019-01-02 19:55:45 +01:00
Dan
4d7b1bafac
Update copyright year
2019-01-01 12:36:16 +01:00
Dan
e7a85520f2
Merge remote-tracking branch 'origin/develop' into develop
...
# Conflicts:
# pyrogram/client/client.py
2018-09-17 15:59:49 +02:00
Dan
45a32ddd88
Remove old commented code on session.py
2018-09-07 00:42:45 +02:00
Dan
38442bf3c1
Add missing await
2018-09-07 00:41:01 +02:00
Dan
b619818c40
Clear recv_queue on session stop. Fixes #103
2018-09-03 16:35:22 +02:00
Dan
10f3829c93
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/connection/connection.py
# pyrogram/connection/transport/tcp/tcp.py
# pyrogram/connection/transport/tcp/tcp_intermediate.py
# pyrogram/session/session.py
2018-09-01 01:05:25 +02:00
Dan
b845544e63
Info log device and system parameters
2018-08-28 12:39:14 +02:00
Dan
f50638772c
Minor fix: update info log
2018-08-28 12:38:02 +02:00
Dan
4b3b647245
Merge branch 'ipv6' into develop
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/session/session.py
2018-08-28 12:19:37 +02:00
Dan
2f1d447783
Move INITIAL_SALT to Session
2018-06-28 17:50:37 +02:00
Dan
4f4531cf18
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/session/session.py
2018-06-28 00:41:11 +02:00
Dan
6e4c608875
Handle AUTH_KEY_DUPLICATED error
2018-06-28 00:16:12 +02:00
Dan
77c696aec0
Merge branch 'develop' into asyncio
2018-06-27 17:21:14 +02:00
Dan
ecaba45523
Keep only lang_code
2018-06-27 00:42:32 +02:00
Dan
c8468ccdd1
Merge branch 'develop' into asyncio
2018-06-24 19:29:31 +02:00
Dan
c7d60ef8a6
Fix disconnect handler callback being called on every session
2018-06-24 19:29:12 +02:00
Dan
5f727cb5a2
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/client/ext/base_client.py
# pyrogram/client/methods/bots/request_callback_answer.py
# pyrogram/session/session.py
2018-06-24 19:27:37 +02:00
Dan
55ef4abb27
Allow user-defined session properties. Related to #86
...
This commit adds five 5 extra parameters to the Client class:
app_version, device_model, system_version, system_lang_code, lang_code
2018-06-24 18:47:49 +02:00
Dan
f4c0793a0b
Make session leaner by removing some redundant parameters
...
Related to #86
2018-06-24 18:27:41 +02:00
Dan
69d1432251
Allow user-defined values for retries and timeout
2018-06-24 17:47:29 +02:00
Dan
81c8fca11c
Make the on_disconnect callback function a coroutine
2018-06-24 11:40:43 +02:00
Dan
1bc599e26c
Delegate timeout to TCP
2018-06-17 19:20:22 +02:00
Dan
57f917e6df
Don't print out the current salt
2018-06-17 18:39:08 +02:00
Dan
f983baf5cd
Add some more logs
2018-06-17 18:34:37 +02:00
Dan
6da15b266d
Await tasks before stopping the session
2018-06-17 18:34:10 +02:00
Dan
2b0746a140
Add timeout on recv loop
2018-06-17 18:33:23 +02:00
Dan
39b66b51d6
Remove salt assertion
2018-06-16 22:05:54 +02:00
Dan
d1d789bf20
Fix restart not awaiting
2018-06-15 14:30:13 +02:00
Dan
d06e486c8b
Reorganize imports
2018-06-14 13:30:46 +02:00
Dan
eeaf01654b
Code style
2018-06-14 13:05:22 +02:00
Dan
b1f6131971
Remove unused constant
2018-06-14 13:04:52 +02:00
Dan
775cbb568f
Small fixes
2018-06-14 03:27:30 +02:00
Dan
68133e8be5
Better logs
2018-06-14 03:26:57 +02:00
Dan
463ef828c2
Use put_nowait instead of put
2018-06-14 03:25:15 +02:00
Dan
2cf930bea0
Remove commented MTProto methods
2018-06-14 03:24:39 +02:00
Dan
11ddf5f99d
Reorganize Session to make use of the MTProto module
2018-06-14 03:22:52 +02:00
Dan
0b03612bc7
Make restart async
2018-06-13 21:01:28 +02:00
Dan
a9ccbaca19
Fix ping request not awaiting
2018-06-13 20:03:54 +02:00
Dan
b804709c6c
Allow session to use ipv6
2018-06-13 13:37:35 +02:00
Dan
e2546e77ae
Start rewriting Session using asyncio
2018-06-12 15:56:33 +02:00
Dan
65c209000c
Connection refactoring
2018-05-24 21:19:57 +02:00
Dan
9001ccd11f
Add DisconnectHandler
2018-05-23 14:27:17 +02:00
Dan
f0c801be8c
Rename AES class methods and add ctr256_encrypt
2018-05-18 14:15:35 +02:00