Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.
/ WhaPy Public archive

WhaPy is an API for whatsapp written in Python. THIS API HAS BEEN DISCONTINUED DUE WHATSAPP INTERFACE UPDATE

License

Notifications You must be signed in to change notification settings

efraimrodrigues/WhaPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation Status

Checkout the documentation.

Installing

To install the library just run the following command:

python3 -m pip install whapy

Quick Example

import whapy

wap = whapy.WhaPy(whapy.Browser.firefox, True)

@wap.event
async def on_message(chat, messages):
    print("New messages arrived: ")
    for i in range(0,len(messages)):
        if not messages[i].is_media():
            print(messages[i].get_content())
            if messages[i].get_content() == "@who":
                chat.send_message("are you?")

@wap.event
async def on_ready():
    print("Logged in as " + wap.get_me())

wap.run()

Dependencies

About

WhaPy is an API for whatsapp written in Python. THIS API HAS BEEN DISCONTINUED DUE WHATSAPP INTERFACE UPDATE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published