4.0.0 #202
david-lev
announced in
Announcements
4.0.0
#202
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Pywa v4.0.0 is here!
This is a massive update to Pywa, introducing BSUID, full group management, a built-in webhook server, Coexistence support, and more.
Important
Migration to v4 introduces breaking changes. Please review carefully before upgrading.
✨ Highlights
country_code.User.wa_idis now optional.msg.chatto distinguish private chats from groups.pywa dev,pywa run,WhatsApp.run()) andstart_ngrok_tunnelfor easy local development and testing.EditedMessage,DeletedMessage, and Outgoing equivalents for Coexistence support. Addedsend_carouselandreply_carousel. Media objects now store theircaption.set_username,delete_username, etc.).Template.duplicate(...)now supportstarget_waba_id.🔥 Breaking changes
User.wa_idmay beNoneif a user enables a username. StoreUser.bsuidinstead.types.ChatOpened, handlers, and filters) → Use message, callback, or listener entry points.wa.listen(to="...")calls removed → Use explicit listener identifiers instead.Message.systemremoved → System events are now handled viaPhoneNumberChangeandIdentityChange.Message.download_media(in_memory=True)removed → Usemsg.get_media_bytes()ormsg.stream_media().sent.chat(with.idand.type) instead of a plain string insent.to_user.See full details and migration steps in the migration guide.
📚 Resources
💡 Examples
Run the application via the new CLI commands:
pywa dev # or for production-style serving: pywa runFull Changelog: 3.9.0...4.0.0
This discussion was created from the release 4.0.0.
All reactions