Commit Graph

1969 Commits

Author SHA1 Message Date
Dan
dc737ab7bb Add GameHighScore and GameHighScores types 2019-01-07 22:30:33 +01:00
Dan
633fefe178 Add get_game_high_scores method 2019-01-07 22:28:41 +01:00
Dan
65bdf31ce1 Move send_game and set_game_score into bots folder 2019-01-07 22:26:52 +01:00
Dan
33e83bf635 Update set_game_score docstrings 2019-01-07 22:19:21 +01:00
Dan
9771be9c2a Add send_game and set_game_score methods 2019-01-07 21:49:58 +01:00
Dan
1bbf048b7a Remove duplicated references 2019-01-07 21:49:25 +01:00
Dan
ebb2ad5aab Add BOT_SCORE_NOT_MODIFIED error 2019-01-07 11:47:59 +01:00
Dan
7ae9a065b8 Update examples 2019-01-07 10:34:38 +01:00
Dan
491b96c9f6 Use "recent" filter for up to 10k members 2019-01-07 10:00:42 +01:00
Dan
6451d599b2 Fix typo 2019-01-07 08:30:40 +01:00
Dan
bb27633da6 Add game and game_score in Message 2019-01-05 23:13:47 +01:00
Dan
50e5692eae Add Filters.game and Filters.game_score. Also fix Filters.animation name 2019-01-05 23:12:59 +01:00
Dan
d5303285d6 Add support for Game inline buttons. Add CallbackGame type 2019-01-05 23:12:29 +01:00
Dan
7d061a1b5c Add Game type 2019-01-05 23:11:39 +01:00
Dan
7cb1c99e28 Update copyright year 2019-01-05 18:29:48 +01:00
Dan
c7b1d6f70a Take into account that flags:# could be not always the first argument
For instance, in Layer 91, Poll's flags:# is at the second position.
This mess also happened in the past (thanks tg devs) and eventually will
be fixed again with the next Layer update, but from now on Pyrogram
will be able to correctly generate code even in such cases.
2019-01-05 15:40:40 +01:00
Dan
a50dba2b4c Add close_poll method 2019-01-05 14:44:10 +01:00
Dan
0716380737 Add MEDIA_INVALID error 2019-01-05 12:26:05 +01:00
Dan
999b9ce667 Add MESSAGE_POLL_CLOSED error 2019-01-05 12:06:54 +01:00
Dan
7e354b12bf Fix kick_chat_member docstrings and return type 2019-01-04 23:15:57 +01:00
Dan
b8a3d02eef Fix get_messages return type 2019-01-04 23:12:06 +01:00
Dan
153439ac88 Add iter_chat_members method. Reference #170 2019-01-04 17:13:44 +01:00
Dan
d7e3397050 Update get_chat_members docstrings 2019-01-04 16:59:36 +01:00
Dan
e1cac13f0d Fix get_dialogs docstrings 2019-01-04 16:58:57 +01:00
Dan
948f2b44ed Add iter_dialogs method. Reference #170 2019-01-04 16:10:34 +01:00
Dan
4d1d70082b Sleep in case of get_dialogs flood waits 2019-01-04 16:08:05 +01:00
Dan
c5212dc615 Merge remote-tracking branch 'origin/develop' into develop 2019-01-04 15:37:33 +01:00
Dan
8628d3a56d Add iter_history method
For #170
2019-01-04 15:37:08 +01:00
Dan
fbc18cace0 Update get_history docstrings 2019-01-04 15:36:43 +01:00
Dan
04542dbddf Make parsing multiple Messages more efficient
This is achieved by not calling get_messages for each single reply.
Instead, all the available replies are retrieved in one request only.
2019-01-04 14:42:39 +01:00
Dan
7e3513f8ee Wait in case of flood errors in get_messages 2019-01-04 14:38:08 +01:00
Dan
fe89974523 Add get_history signature to BaseClient
Also make other method parameters generic
2019-01-04 14:37:26 +01:00
Dan
fe4e8c5a42 Rename get_history's "reversed" parameter to "reverse"
It was colliding with the built-in "reversed" function
2019-01-04 14:36:42 +01:00
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
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
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
4f04d4aee8 Update to v0.10.2 2018-12-31 17:21:18 +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
e5be7fcc90 Update to v0.10.1 2018-12-31 14:41:38 +01:00