Commit Graph

2188 Commits

Author SHA1 Message Date
Dan
36f987e979 Add Filters.me
Useful to filter messages coming from the current running user.
Does the same thing as Filters.user("me")
2019-01-03 20:58:38 +01:00
Dan
d69a93d253 Automatically cast message and caption arguments to str 2019-01-03 20:53:48 +01:00
Dan
9256185b5a
Update copyright year 2019-01-03 18:27:47 +01:00
Dan
4f6990d735 Add takeout parameter in Client
This lets the client use a takeout session instead of a normal one.
Takeout sessions are useful for exporting Telegram data. Methods invoked
inside a takeout session are less prone to throw FloodWait exceptions.
2019-01-03 12:20:42 +01:00
Dan
7c008ca4e3 Add a bunch of takeout related errors 2019-01-03 11:42:15 +01:00
Dan
b53ba81a6a Add no_updates parameter in Client
Useful to completely disable incoming updates for batch programs
2019-01-03 11:13:24 +01:00
Dan
b7b31d39e8 Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/__init__.py
2019-01-03 09:15:44 +01:00
Dan
4493f78138 Update to v0.10.3 2019-01-03 08:59:39 +01:00
Dan
372bbabe28 Make invite links of public channels work with get_chat 2019-01-02 22:39:16 +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
1f8f313398 Fix broken ChatMember parser working on already parsed Users 2019-01-02 19:13:01 +01:00
Dan
12e070f6b1 Tell readthedocs to use Python 3.6 because 3.5.2 is bugged
https://github.com/rtfd/readthedocs.org/issues/5051
To be removed once readthedocs images use an updated
Python interpreter.
2019-01-02 18:20:51 +01:00
Dan
1960b00280 Add a way to stop iterating through handlers
Closes #125
2019-01-02 18:11:22 +01:00
Dan
f440b1f969
Add missing colon 2019-01-02 17:27:40 +01:00
Dan
b60853b2e2 Make typing available for Python <3.5 only 2019-01-01 13:12:39 +01:00
Dan
4d7b1bafac Update copyright year 2019-01-01 12:36:16 +01:00
Dan
3ada74068e Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/__init__.py
2018-12-31 17:45:04 +01:00
Dan
4f04d4aee8 Update to v0.10.2 2018-12-31 17:21:18 +01:00
Dan
e56425c878 Merge branch 'develop' into asyncio 2018-12-31 17:14:47 +01:00
Dan
21dbbc3f0b Fix style parsers randomly returning "unsorted" dicts.
This is due to Python <3.6 having "unsorted" dicts. Dicts are inherently
unsorted, but starting from Python 3.6 they keep the order in which the
keys are inserted (useful for unpacking)
2018-12-31 17:13:50 +01:00
Dan
4e4d765dd1 Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/__init__.py
2018-12-31 14:53:24 +01:00
Dan
e5be7fcc90 Update to v0.10.1 2018-12-31 14:41:38 +01:00
Dan
024e3852f7 Don't rely on git for GitHub installations
Instead, let people install from zips GitHub already provides.
2018-12-31 13:22:14 +01:00
Dan
2ea1f0f323 Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/client/client.py
#	pyrogram/client/methods/chats/get_chat.py
#	pyrogram/client/methods/messages/get_messages.py
#	pyrogram/client/types/messages_and_media/messages.py
2018-12-31 12:06:15 +01:00
Dan
490b8bf579 Fix get_message getting infinite replies 2018-12-31 12:02:15 +01:00
Dan
a02846e900 Move get_chat_preview in a better place 2018-12-30 07:53:14 +01:00
Dan
d00fde74de Use clearer error pages' titles 2018-12-29 13:37:13 +01:00
Dan
554512d43b Merge remote-tracking branch 'origin/develop' into develop 2018-12-28 16:20:05 +01:00
Dan
46aeb569d5 Add AdvancedUsage.rst 2018-12-28 16:19:42 +01:00
Dan
8f38ce3b9e Remove Raw Functions from Usage doc page 2018-12-28 16:19:30 +01:00
Dan
5dcc19cfb3 Move download_media into messages and media namespace 2018-12-28 15:18:01 +01:00
Dan
74c4e35a4f Move download_media into messages and media namespace 2018-12-28 15:17:05 +01:00
Dan
64ec26850e Document save_file 2018-12-28 15:16:46 +01:00
Dan
c907e8146a Allow get_chat to work with chat invite links 2018-12-28 14:34:47 +01:00
Dan
0e62b3472a Add get_chat_preview method and ChatPreview object 2018-12-28 14:26:00 +01:00
Dan
769b3ebdee Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/__init__.py
#	pyrogram/client/methods/chats/get_dialogs.py
#	pyrogram/client/methods/messages/get_history.py
2018-12-28 00:38:54 +01:00
Dan
9fadbbd728 Update develop version 2018-12-28 00:37:20 +01:00
Dan
3814471af4 Change get_dialogs behaviour
It now accepts an offset_date instead of an offset_dialog
2018-12-27 23:56:45 +01:00
Dan
decaa9e7f0 Rename downwards to reversed 2018-12-27 23:55:56 +01:00
Dan
d3c87214b6 Merge branch 'develop' of https://github.com/pyrogram/pyrogram into develop 2018-12-27 23:54:17 +01:00
Dan
d9d1afd305
Merge pull request #94 from YoilyL/develop
added reverse option to get_history
2018-12-27 23:53:06 +01:00
Dan
233e0920a2
Merge branch 'develop' into develop 2018-12-27 23:52:40 +01:00
Dan
4a01745c68 Add more error classes to docs 2018-12-27 23:04:51 +01:00
Dan
e4bead530c Automatically redirect to GitHub release notes in 10 seconds 2018-12-27 14:20:59 +01:00
Dan
39a458a5f8 Add Changelog documentation page 2018-12-26 20:08:11 +01:00
Dan
127123006f Add TestServers documentation page 2018-12-26 19:44:22 +01:00
Dan
74477f2cac Add PHONE_NUMBER_FLOOD error 2018-12-26 09:18:48 +01:00
Dan
f4736c17a6 Merge branch 'develop' into asyncio 2018-12-25 23:08:52 +01:00
Dan
1eee4b77e1 Pin/unpin_chat_message don't raise a ValueError anymore 2018-12-25 23:08:45 +01:00
Dan
06d8293fa0 Merge branch 'develop' into asyncio
# Conflicts:
#	pyrogram/__init__.py
#	pyrogram/client/client.py
#	pyrogram/client/methods/bots/send_inline_bot_result.py
#	pyrogram/client/methods/chats/pin_chat_message.py
#	pyrogram/client/methods/chats/unpin_chat_message.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
2018-12-25 23:07:45 +01:00