Skip to content

Commit

Permalink
feat: Add embed_mentions argument in answer_message method (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kondrahin committed Oct 26, 2021
1 parent bd9a99d commit 97c8b1c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion botx/bots/mixins/sending.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ async def answer_message( # noqa: WPS211
file: Optional[Union[BinaryIO, TextIO, File]] = None,
markup: Optional[MessageMarkup] = None,
options: Optional[MessageOptions] = None,
embed_mentions: bool = False,
) -> UUID:
"""Answer on incoming message and return id of new message..
Expand All @@ -133,7 +134,8 @@ async def answer_message( # noqa: WPS211
markup: bubbles and keyboard that can be attached to the message.
options: additional message options, like mentions or notifications
configuration.
metadata: dict of message metadata
metadata: dict of message metadata.
embed_mentions: get mentions from text.
Returns:
`UUID` of sent event.
Expand All @@ -144,6 +146,7 @@ async def answer_message( # noqa: WPS211
markup=markup,
options=options,
metadata=metadata,
embed_mentions=embed_mentions,
)
if file:
sending_message.add_file(file)
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.25.1 (Oct 22, 2021)

### Changed

* Add `embed_mentions` argument in `answer_message` method.


## 0.25.0 (Sep 17, 2021)

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "botx"
version = "0.25.0"
version = "0.25.1"
description = "A little python framework for building bots for eXpress"
license = "MIT"
authors = [
Expand Down

1 comment on commit 97c8b1c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://pybotx.netlify.app as production
🚀 Deployed on https://6177c827b25196b5ab6c8d3f--pybotx.netlify.app

Please sign in to comment.