bakatrouble
081b9b280a
Add ability to forward messages as copies ( #227 )
...
* Add ability to forward messages as copies
* Add Messages.forward() method
* Update and clean up code
2019-03-21 13:53:07 +01:00
Eric Solinas
ac591cf3c7
Add more Message convenience methods ( #233 )
...
* Added convenience methods
message.reply_animation
message.reply_audio
message.reply_cached_media
message.reply_chat_action
message.reply_contact
message.reply_document
message.reply_game
message.reply_inline_bot_result
message.reply_location
message.reply_media_group
message.reply_photo
message.reply_poll
message.reply_sticker
message.reply_venue
message.reply_video
message.reply_video_note
message.reply_voice
message.edit_caption
message.edit_media
message.edit_reply_markup
message.pin
fixed send_document docstrings while doing so
uniformed function declaration of send_poll
* Update style and small fixes
2019-03-20 15:44:20 +01:00
Dan
3e18945f3c
Reformat code
2019-03-16 19:23:23 +01:00
Dan
9f26ac9cbe
Merge branch 'develop' into __slots__
2019-03-16 17:51:48 +01:00
Dan
def3bdaa63
Reformat code
2019-03-16 17:51:37 +01:00
Dan
34b51b6481
Force keyword arguments for all TL types
2019-03-16 16:53:52 +01:00
Dan
e0f1f6aaeb
Add __slots__ to every single Pyrogram types
2019-03-16 16:15:56 +01:00
Dan
ef9ed31589
Add __slots__ to PyrogramType and Update types
2019-03-16 16:15:56 +01:00
Dan
b01caf10a9
Rename default_permissions to just permissions
2019-03-13 14:47:39 +01:00
Dan
b6038c4f2e
Update Chat and ChatPermissions to accommodate default chat permissions
2019-03-13 13:02:40 +01:00
Dan
8c9e5e6753
Fix PhotoSize parsing
2019-03-13 12:14:08 +01:00
Dan
ffa0da5800
Merge branch 'develop' into layer-95
...
# Conflicts:
# pyrogram/__init__.py
2019-03-01 18:38:27 +01:00
bakatrouble
87c4d08d9c
client.join_chat() now returns pyrogram.Chat instead of MTProto Update ( #206 )
...
* client.join_chat() now returns pyrogram.Chat instead of MTProto Update
* Do not use Chat._parse_mtproto_chat() method
* Update chat.py
Rename _parse_mtproto_chat to a generic _parse_chat_chat
Hint about its current usage (none).
2019-03-01 18:28:46 +01:00
Dan
5294c21e97
Automatically coerce any text to string for keyboard buttons
2019-03-01 16:04:21 +01:00
Dan
a6dbed6dfb
Add a way to continue the update propagation within a group
...
Add continue_propagation() method and ContinuePropagation exception
Closes #212
2019-02-04 12:33:54 +01:00
Dan
c40f061d9a
Fix CallbackQuery docstrings
2019-02-02 19:01:35 +01:00
Dan
e9b1730318
Update ChatMember to use the new ChatPermissions type
2019-01-24 17:05:15 +01:00
Dan
1472b8236d
Add ChatPermissions type
2019-01-24 17:03:51 +01:00
Dan
e99f86b69f
Update media thumbs parsing for L93
2019-01-21 18:45:52 +01:00
Dan
cb0b8ebeae
Fix Chat sticker_set_name
2019-01-21 18:35:11 +01:00
Dan
c0a5b0a2c3
Fix kicked members reporting "left" as status
2019-01-21 16:56:22 +01:00
Dan
b919ed8242
Add restricted_by attribute in ChatMember ( #204 )
2019-01-21 16:53:54 +01:00
Dan
f0c8f65e9d
Add promoted_by attribute in ChatMember ( #204 )
2019-01-21 16:41:56 +01:00
Dan
16b7203ee9
Add invite_by attribute in ChatMember ( #204 )
2019-01-21 16:34:46 +01:00
Dan
a57ee7b333
Accommodate parsing of invited_by attribute of ChatMember ( #204 )
2019-01-21 16:33:33 +01:00
Dan
d6a1503344
Add "date" attribute to ChatMember ( #204 )
2019-01-21 15:38:36 +01:00
Dan
76d4e4f60e
Fix "left" status not being parsed in ChatMember ( #204 )
2019-01-21 15:36:54 +01:00
Dan
d5ed47f4e9
Fix Message.download() not working when using the progress callback
2019-01-11 13:59:18 +01:00
Dan
8928ca3433
Rename game_score to game_high_score
2019-01-07 22:50:54 +01:00
Dan
dc737ab7bb
Add GameHighScore and GameHighScores types
2019-01-07 22:30:33 +01:00
Dan
7ae9a065b8
Update examples
2019-01-07 10:34:38 +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
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
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
1f8f313398
Fix broken ChatMember parser working on already parsed Users
2019-01-02 19:13:01 +01:00
Dan
1960b00280
Add a way to stop iterating through handlers
...
Closes #125
2019-01-02 18:11:22 +01:00
Dan
4d7b1bafac
Update copyright year
2019-01-01 12:36:16 +01:00
Dan
490b8bf579
Fix get_message getting infinite replies
2018-12-31 12:02:15 +01:00
Dan
0e62b3472a
Add get_chat_preview method and ChatPreview object
2018-12-28 14:26:00 +01:00
Dan
098b06d1b7
Fix poll docstrings and vote_poll wrong attribute access
2018-12-24 14:32:53 +01:00
Dan
c833b3842a
Put PollOption back in a separate file, its docstrings must be visible
2018-12-24 14:19:21 +01:00
Dan
2994929903
Document Poll
2018-12-23 17:00:51 +01:00
Dan
10f1e06326
Rework vote_poll to work with all polls generated by different clients
2018-12-23 17:00:51 +01:00
Dan
0ce7498f81
Parse the pinned message on basic chats too
2018-12-23 17:00:51 +01:00
Dan
2b568afd2a
Refactor Poll.
...
Move PollAnswer into poll.py and rename it to PollOption
2018-12-23 17:00:50 +01:00
Dan
2b25b9469b
Parse Poll objects inside Message
2018-12-22 23:55:04 +01:00
Dan
1ef3bc758f
Export Poll and PollAnswer types
2018-12-22 23:54:42 +01:00
Dan
aef02f049c
Add Poll and PollAnswer types
2018-12-22 23:54:18 +01:00