Closed loic-hamdi closed 1 year ago
Please include in WppGroup
Future setSubject({
required String groupId,
required String subject,
}) async {
return wpClient.evaluateJs(
'''WPP.group.setSubject(${groupId.phoneParse}, ${subject.jsParse});''',
methodName: 'setSubject',
);
}
@loic-hamdi Done,, added in this commit
Btw you can push a Pr for the changes, that would be easy to intergrate features
To add new Pr :
Fork this repo
then create new branch : git checkout -b "add_group_subject"
then make changes to this branch ( only required changes )
commit these changes :
git add .
git commit -m "Add group subject"
git push origin -u add_group_subject
now open github and create a Pull request from your add_group_subject
-> main
of my repo
Also by the time, these features are not released on pub
you can use the github version of this library
and in new version there is a new method : whatsappClient.executeFunction
you can use this to execute any method from Wpp like this one : '''WPP.group.setSubject(${groupId.groupParse}, ${subject.jsParse});'''
Added in latest Version : 2.0.1
Hey @rohitsangwan01 ,
Thank s a lot for the latest upgrades! Good job 👍 Here is a new feature to change the group subject