-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7dedac
commit c98513f
Showing
4 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from whatsapp_api_client_python import API | ||
|
||
greenAPI = API.GreenAPI( | ||
"1101000001", "d75b3a66374942c5b3c019c698abc2067e151558acbd412345" | ||
) | ||
|
||
|
||
def main(): | ||
# DeleteMessage for sender | ||
response = greenAPI.serviceMethods.deleteMessage("[email protected]", "BAE52A7F04F452F9", True) | ||
|
||
# DeleteMessage for all (default) | ||
response = greenAPI.serviceMethods.deleteMessage("[email protected]", "BAE5558FFC7565C2") | ||
|
||
# EditMessage | ||
response = greenAPI.serviceMethods.editMessage("[email protected]", "BAE5F793F61411D0", "New text") | ||
print(response.data) # new idMessage | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters