Skip to content

Commit 016ebe0

Browse files
author
Pietro Albini
committed
Require an API instance for calling send_contact
I just forgot to add the decorator in commit bef03f2. Regression-of: bef03f2
1 parent 1009c1c commit 016ebe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

botogram/objects/mixins.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def send_sticker(self, sticker, reply_to=None, extra=None, notify=True):
164164
return self._api.call("sendSticker", args, files,
165165
expect=_objects().Message)
166166

167+
@_require_api
167168
def send_contact(self, phone, first_name, last_name=None, *, reply_to=None,
168169
extra=None, notify=True):
169170
"""Send a contact"""

0 commit comments

Comments
 (0)