Skip to content

Commit

Permalink
fix wrong input that attaches to nothing (#30)
Browse files Browse the repository at this point in the history
* fix precedence of Message.instance

* fix wrong imports
  • Loading branch information
SurajBhari authored Apr 18, 2024
1 parent c34eab1 commit a9935dc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions whatsapp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,23 @@ async def hook(r: Request):
changed_field = staticmethod(changed_field)
get_author = staticmethod(get_author)

send_button = send_button
create_button = create_button
send_reply_button = send_reply_button
send_image = send_image
send_video = send_video
send_audio = send_audio
send_location = send_location
send_sticker = send_sticker
send_document = send_document
upload_media = upload_media
query_media_url = query_media_url
download_media = download_media
delete_media = delete_media
send_template = send_template
send_custom_json = send_custom_json
send_contacts = send_contacts

authorized = property(authorized)

def create_message(self, **kwargs) -> Message:
Expand Down

0 comments on commit a9935dc

Please sign in to comment.