Skip to content

Commit 7c9a81e

Browse files
committed
Rename Message.edit_attachs to Message.edit_attach
1 parent 88be6c0 commit 7c9a81e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

botogram/objects/mixins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ def edit_caption(self, caption, extra=None, attach=None):
283283
self.caption = caption
284284

285285
@_require_api
286-
def edit_attachs(self, attach):
287-
"""Edit this message's attachments"""
286+
def edit_attach(self, attach):
287+
"""Edit this message's attachment"""
288288
args = {"message_id": self.message_id, "chat_id": self.chat.id}
289289
args["reply_markup"] = attach
290290

docs/api/telegram.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ about its business.
13841384

13851385
.. versionadded:: 0.3
13861386

1387-
.. py:method:: edit_attachs(attach)
1387+
.. py:method:: edit_attach(attach)
13881388
13891389
This method allows you to change the attachment of a message you already
13901390
sent. For example, you can use it to update the :ref:`buttons <buttons>`
@@ -1397,7 +1397,7 @@ about its business.
13971397
message = chat.send("Some example websites.", attach=btns)
13981398
13991399
btns[1].url("example.org", "http://example.org")
1400-
message.edit_attachs(btns)
1400+
message.edit_attach(btns)
14011401
14021402
:param object attach: The new attachment
14031403

docs/changelog/0.4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ New features
5757

5858
* Added ability to edit message attachments
5959

60-
* New method :py:meth:`botogram.Message.edit_attachs`
60+
* New method :py:meth:`botogram.Message.edit_attach`
6161

6262
Performance improvements
6363
------------------------

0 commit comments

Comments
 (0)