Dan
ac4714c0dd
Merge develop -> asyncio
2019-07-02 00:05:51 +02:00
Dan
18b581fb45
Update Pyrogram to v0.15.1
2019-07-02 00:03:14 +02:00
Dan
be3947e20b
Fix some methods not working correctly with the new Text Parser
2019-07-02 00:01:18 +02:00
Dan
b20e0ef2d2
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/__init__.py
# pyrogram/client/methods/chats/export_chat_invite_link.py
# pyrogram/client/parser/html.py
2019-07-01 14:49:47 +02:00
Dan
3f2f40af02
Update docs index example
2019-07-01 14:46:33 +02:00
Dan
7a1d6002a9
Update robots.txt
2019-07-01 14:29:02 +02:00
Dan
544cddfd1c
Update Pyrogram to v0.15.0
2019-07-01 13:44:16 +02:00
Dan
992ef7bf52
Fix sphinx warnings
2019-07-01 13:37:12 +02:00
Dan
414e42a3cc
Update README.md example
...
Use .reply_text() instead of .reply()
2019-07-01 13:32:14 +02:00
Dan
46a03a2000
Log the invalid values when raising errors
2019-07-01 13:17:16 +02:00
Dan
8e9f61148f
Merge remote-tracking branch 'origin/develop' into asyncio
...
# Conflicts:
# pyrogram/client/types/user_and_chats/chat.py
2019-07-01 12:30:34 +02:00
Dan
6c80064f2c
Enable custom format for User mentions
...
Examples:
- format(user, "mention")
- "{:mention}".format(user)
- f"{user:mention}"
2019-06-30 21:10:28 +02:00
Dan
a790431274
Do string conversion and striping in the Parser
2019-06-30 21:08:50 +02:00
Dan
40b0c57b54
Don't rename the in-memory sessions
2019-06-30 20:53:35 +02:00
Dan
83c386cbec
Use consistent naming
2019-06-30 20:53:05 +02:00
Dan
a05ac9d8a3
Update errors prune path
2019-06-30 19:22:19 +02:00
Dan
c76a62964f
Update: consistent examples
2019-06-30 18:51:04 +02:00
Dan
580c684cb3
Fix export_chat_invite_link not working correctly (channels/supergroups)
2019-06-30 16:13:10 +02:00
Dan
0d6f8cd462
Merge pull request #260 from mendelmaleh/develop
...
Add convenience bound methods to Chat
2019-06-30 10:49:22 +02:00
Dan
09e1ac5eb4
Fix bad params when defining and calling methods
2019-06-30 10:48:19 +02:00
Dan
80d7a8cbbd
Add missing colon
2019-06-30 10:03:45 +02:00
Dan
a02cd271c9
Update chat.py
2019-06-30 10:01:39 +02:00
Mendel E
2c1834b1b2
Add .(kick|unban|restrict|promote)_member bound methods to Chat
2019-06-29 22:12:59 -04:00
Mendel E
54c8e24f48
Add .set_ bound methods to Chat
2019-06-28 17:07:38 -04:00
Dan
59b43af02e
Fix RPCError not setting the x attribute
2019-06-28 20:43:06 +02:00
Dan
8c2a971fec
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/methods/messages/send_document.py
2019-06-28 16:31:52 +02:00
Dan
46bf382480
Fix self.parser not calling .parse for send_document
2019-06-28 16:31:32 +02:00
Dan
88632ae265
Add block_user and unblock_user to docs
2019-06-28 16:29:16 +02:00
Dan
d8d72395b7
Merge branch 'develop' into asyncio
2019-06-28 11:12:19 +02:00
Dan
155580649a
Update filters: Make the name argument optional
2019-06-28 11:11:59 +02:00
Dan
506253e506
Fix objects failing to print in case there's no __slots__ attribute
2019-06-28 10:41:57 +02:00
Dan
b6f508711a
Many minor documentation enhancements
2019-06-27 23:16:21 +02:00
Dan
9f231bb880
Update errors documentation page
2019-06-27 23:15:46 +02:00
Dan
a44c996302
Revamp text-formatting page, add info about the new styles
2019-06-27 23:15:12 +02:00
Dan
fa1b66f914
Make unknown errors with known error codes inherit from base categories
2019-06-27 11:59:44 +02:00
Dan
40bcd4e59d
Fix delete_profile_photos. Closes #259
2019-06-26 21:43:08 +02:00
Dan
8ef97f2177
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/methods/messages/edit_message_text.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_document.py
# pyrogram/client/methods/messages/send_message.py
# pyrogram/client/methods/messages/send_photo.py
# pyrogram/client/methods/messages/send_video.py
# pyrogram/client/methods/messages/send_voice.py
# pyrogram/client/parser/html.py
# pyrogram/client/parser/markdown.py
# pyrogram/client/types/input_message_content/input_text_message_content.py
2019-06-26 19:34:49 +02:00
Dan
39e25147bd
Update parse_mode parameter docstrings
2019-06-26 16:36:24 +02:00
Dan
197cf5506c
Only allow either "markdown" or "html" as text style parse mode
2019-06-26 16:36:00 +02:00
Dan
f05e79e0f4
Update usages of Parser all around the library
2019-06-26 16:08:24 +02:00
Dan
e61bf92627
Add Parser package
...
Revamped from HTML/Markdown
2019-06-26 16:07:27 +02:00
Dan
be5f0c9529
Parser's client can be None
...
In that case, check if is None and don't parse user mentions.
This happens only in text content for inline results
2019-06-26 16:06:50 +02:00
Dan
8d852cb47e
Implement strict and loose markdown parsing
...
This is enabled by default:
- strict: only markdown syntax is parsed
- loose: both markdown and html syntax are parsed
2019-06-26 16:05:09 +02:00
Dan
e4a6d16cf3
Remove generated inline query result types
2019-06-26 15:56:08 +02:00
Dan
7cd145b0db
Merge branch 'develop' into asyncio
...
# Conflicts:
# pyrogram/client/style/html.py
# pyrogram/client/style/markdown.py
2019-06-25 11:48:43 +02:00
Dan
7490f6cfa3
Update the HTML parser: make it easy for asyncio to deal with mentions
...
We can't await coroutines inside HTMLParser overridden methods, such as
handle_starttag, because they can't be async. This commit moves the
resolve_peer call into the parse method of the HTML class, which can be
defined async.
2019-06-25 11:47:45 +02:00
Dan
32ca805f6b
Update message.py
2019-06-25 10:25:21 +02:00
Dan
168fce09da
Implement HTML.unparse and Markdown.unparse
2019-06-25 10:24:19 +02:00
Dan
a086964e85
Make the HTML parser more sound
2019-06-25 07:41:48 +02:00
Dan
07bc7e39df
Allow entities to overlap, like: <b>bold <i>and</b> italic</i>
2019-06-25 07:08:38 +02:00