-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Added methods to quickly reply to a message with Markdown or HTML #725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -305,6 +306,40 @@ def reply_text(self, *args, **kwargs): | |||
self._quote(kwargs) | |||
return self.bot.send_message(self.chat_id, *args, **kwargs) | |||
|
|||
def reply_markdown(self, *args, **kwargs): | |||
""" | |||
Shortcut for ``bot.sendMessage(update.message.chat_id, parse_mode=ParseMode.MARKDOWN, *args, **kwargs)`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to:
Shortcut for::
<two time indent>bot.sendMessage(update.message.chat_id, parse_mode=ParseMode.MARKDOWN, *args, **kwargs)
Shortcut for ``bot.sendMessage(update.message.chat_id, parse_mode=ParseMode.MARKDOWN, *args, **kwargs)`` | ||
Sends a message with markdown formatting. | ||
|
||
Keyword Args: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Args: (without keyword)
|
||
Keyword Args: | ||
quote (Optional[bool]): If set to ``True``, the message is sent as an actual reply to | ||
this message. If ``reply_to_message_id`` is passed in ``kwargs``, this parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent continuing line with two indents.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some comments in the code regarding docstrings.
Could you change |
Closed by #827. |
No description provided.