Dan
0025489c86
Allow on_message to behave like a static decorator
...
This enabled usages like @Client.on_message(...).
To preserve positional arguments order and thus ease the static
decorator usage there's a not-so-elegant hack in place that shifts
values.
2018-10-12 14:12:29 +02:00
Dan
e5f233b01e
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/dispatcher/dispatcher.py
# pyrogram/client/ext/utils.py
2018-10-09 16:38:28 +02:00
Dan
c2da2a61ec
Update welcome_bot.py
2018-10-09 16:37:53 +02:00
Dan
be7194f89e
Put example descriptions at the very top of the files
2018-10-09 15:23:40 +02:00
Dan
fd306c383d
Remove LGPLv3 license notices from example files
...
Examples are licensed under the terms of CC0 1.0 Universal License
2018-10-09 15:21:36 +02:00
Dan
9409d9cd8f
Hint about examples' license in README.md
2018-10-09 15:17:15 +02:00
Dan
133682ca48
Add CC0 1.0 Universal License
2018-10-09 15:07:12 +02:00
Dan
65fb30ce1c
Update examples' README.md
2018-10-09 14:49:42 +02:00
Dan
eb276cbbd5
Remove get_participants.py and get_participants2.py
2018-10-09 14:49:12 +02:00
Dan
5e8be0e6ef
Make use of the "with" context manager
2018-10-09 14:48:43 +02:00
Dan
95821f088b
Add get_chat_members2.py
2018-10-09 14:47:47 +02:00
Dan
184fb563aa
Add short description
2018-10-09 14:45:51 +02:00
Dan
aad72ed9b2
Add get_chat_members.py
2018-10-09 14:37:22 +02:00
Dan
b28f2ebbcb
Update callback_query_handler.py
2018-10-09 14:08:14 +02:00
Dan
acd525294f
Add CallbackQuery.answer bound method
2018-10-09 14:08:01 +02:00
Dan
1be144288c
Add a proxy to the Client instance inside CallbackQuery objects
2018-10-09 14:07:01 +02:00
Dan
7b76751e8f
Update get_history.py
2018-10-09 13:51:29 +02:00
Dan
bd121be76d
Update echo_bot.py
2018-10-09 13:50:34 +02:00
Dan
d5c2ca2e1d
Use TCPAbridged (async) connection mode
2018-10-08 20:18:20 +02:00
Dan
980807f1de
Remove TODO
2018-10-08 20:17:47 +02:00
Dan
1fc160c566
Make TCPIntermediateO async
2018-10-08 20:17:31 +02:00
Dan
78a768f52c
Make TCPAbridgedO async
2018-10-08 20:17:04 +02:00
Dan
1bf0d93140
Make TCPFull async
2018-10-08 20:16:44 +02:00
Dan
ee06907bda
Make TCPAbridged async
2018-10-08 20:16:04 +02:00
Dan
a28ab0e8a8
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
2018-10-08 19:16:47 +02:00
Dan
3fa738db9f
Update dev version
2018-10-02 12:07:54 +02:00
Dan
fcdb71c28c
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/client.py
# pyrogram/client/dispatcher/dispatcher.py
# pyrogram/client/methods/chats/promote_chat_member.py
2018-10-01 16:21:14 +02:00
Dan
89a167b51f
Update default rights to the least common between supergroups & channels
...
Fixes #120
2018-10-01 10:52:09 +02:00
Dan
0a2892691c
Add CHAT_ADMIN_INVITE_REQUIRED error
2018-10-01 10:48:49 +02:00
Dan
1bf8b01151
Add RIGHT_FORBIDDEN error
2018-10-01 10:47:10 +02:00
Dan
0162cf48c1
Don't break groups in case one handler raises an unhandled exception
...
The error is logged instead. Fixes #126
2018-10-01 09:55:09 +02:00
Dan
b79bd1ea83
Don't swallow left_chat_member updates
...
Even though they are only relevant for supergroups with <50 members
2018-10-01 09:45:32 +02:00
Dan
12c61fb431
Fix unwanted CHANNEL_PRIVATE errors. Fixes #129
2018-10-01 09:40:34 +02:00
Dan
f608899c25
Add CHANNEL_PRIVATE error #129
2018-10-01 09:38:25 +02:00
Dan
3cbffd93f2
Revert "Log unknown constructors"
...
This reverts commit 0b6b598
This fixes #128
2018-10-01 09:25:20 +02:00
Dan
9023d999b8
Fix unsorted Telegram API entries
2018-09-29 11:38:58 +02:00
Dan
8070bf4cd4
Fix bad merge after editing tcp.py
2018-09-22 19:41:33 +02:00
Dan
41acdd4d63
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/connection/transport/tcp/tcp.py
2018-09-22 14:49:35 +02:00
Dan
8ea556b65f
Fix handling proxies with domain names
2018-09-22 14:44:12 +02:00
Dan
28abcaac50
Fix ipv6 with ipv4 proxies
2018-09-22 14:31:28 +02:00
Dan
6a89c7ea02
Add missing ipv6 docstrings
2018-09-22 14:21:55 +02:00
Dan
ab560dc292
Small documentation fix
2018-09-20 16:35:43 +02:00
Dan
61a2ad812e
Add missing docstrings for edit_message_media
2018-09-20 16:33:36 +02:00
Dan
bee6ced5c2
Fix Telegram API missing on readthedocs
2018-09-19 18:52:02 +02:00
Dan
df8bc62fb3
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/methods/messages/send_document.py
# pyrogram/client/methods/messages/send_video_note.py
2018-09-19 17:54:53 +02:00
Dan
cc47897c68
Update to v0.8.0
2018-09-19 17:47:28 +02:00
Dan
da92a79b3c
Update README.rst
2018-09-19 17:47:14 +02:00
Dan
3a858e6a57
Fix config values not being available when not using config.ini file
2018-09-19 17:30:23 +02:00
Dan
08f6d0b865
Fix tgcrypto version in docs index page
2018-09-19 16:24:30 +02:00
Dan
9ef8c786e4
Update tgcrypto required version
2018-09-19 16:23:33 +02:00