Releases: green-api/whatsapp-api-client-python
Releases · green-api/whatsapp-api-client-python
Added timeouts for requests
Updated dependencies
Dependencies
- Bump requests from 2.31.0 to 2.32.3
Fixed JSONDecodeError
Added GetAuthorizationCode method
Fixes
- Fixed logger
Enhancements
- Updated python-package.yml
Features
- Added time to logs
- Added links to docs
- Added GetAuthorizationCode method (thanks to @Jibek100)
Example:
greenAPI.account.getAuthorizationCode(11001234567)
Added new methods
Fixes
- Fixed workflows
- Fixed UploadFile method logging
Enhancements
- Updated docs
- Updated examples
- Updated tests
Features
- Added Python 3.12 support
- Added GetWaSettings method (thanks to @andreyMalyshkin)
Example:
greenAPI.sending.getWaSettings()
- Added SendPoll method (thanks to @Jibek100)
Example:
greenAPI.sending.sendPoll(
"[email protected]",
"Please choose a color:",
[
{"optionName": "Red"},
{"optionName": "Green"},
{"optionName": "Blue"}
]
)
Added logger
Fixes
- Fixed webhook connection
Enhancements
- Updated examples
Features
-
Added debug mode
In debug mode you can see data received from the Green API. To enable debug mode, add
debug_mode
option withTrue
value
greenAPI = API.GreenAPI(
"", "", debug_mode=True
)
-
Added
raise_errors
optionIf the option is enabled, it will be raised when an error is received
greenAPI = API.GreenAPI(
"", "", raise_errors=True
)
Fixed ReadTimeout error
- Fixed ReadTimeout error
Fixed uploadFile
- Fixed uploadFile
Added media host
- Added media host
Added UploadFile method
- Added UploadFile method
- Updated python version
- Updated webhook
- Updated tests