@@ -12,7 +12,11 @@ def __init__(self, api: "GreenApi"):
1212 self .api = api
1313
1414 def createGroup (self , groupName : str , chatIds : List [str ]) -> Response :
15- """The method is aimed for creating a group chat."""
15+ """
16+ The method is aimed for creating a group chat.
17+
18+ https://green-api.com/en/docs/api/groups/CreateGroup/
19+ """
1620
1721 request_body = self .__handle_parameters (locals ())
1822
@@ -24,7 +28,11 @@ def createGroup(self, groupName: str, chatIds: List[str]) -> Response:
2428 )
2529
2630 def updateGroupName (self , groupId : str , groupName : str ) -> Response :
27- """The method changes a group chat name."""
31+ """
32+ The method changes a group chat name.
33+
34+ https://green-api.com/en/docs/api/groups/UpdateGroupName/
35+ """
2836
2937 request_body = self .__handle_parameters (locals ())
3038
@@ -36,7 +44,11 @@ def updateGroupName(self, groupId: str, groupName: str) -> Response:
3644 )
3745
3846 def getGroupData (self , groupId : str ) -> Response :
39- """The method gets group chat data."""
47+ """
48+ The method gets group chat data.
49+
50+ https://green-api.com/en/docs/api/groups/GetGroupData/
51+ """
4052
4153 request_body = self .__handle_parameters (locals ())
4254
@@ -50,7 +62,11 @@ def getGroupData(self, groupId: str) -> Response:
5062 def addGroupParticipant (
5163 self , groupId : str , participantChatId : str
5264 ) -> Response :
53- """The method adds a participant to a group chat."""
65+ """
66+ The method adds a participant to a group chat.
67+
68+ https://green-api.com/en/docs/api/groups/AddGroupParticipant/
69+ """
5470
5571 request_body = self .__handle_parameters (locals ())
5672
@@ -64,7 +80,11 @@ def addGroupParticipant(
6480 def removeGroupParticipant (
6581 self , groupId : str , participantChatId : str
6682 ) -> Response :
67- """The method removes a participant from a group chat."""
83+ """
84+ The method removes a participant from a group chat.
85+
86+ https://green-api.com/en/docs/api/groups/RemoveGroupParticipant/
87+ """
6888
6989 request_body = self .__handle_parameters (locals ())
7090
@@ -78,6 +98,8 @@ def removeGroupParticipant(
7898 def setGroupAdmin (self , groupId : str , participantChatId : str ) -> Response :
7999 """
80100 The method sets a group chat participant as an administrator.
101+
102+ https://green-api.com/en/docs/api/groups/SetGroupAdmin/
81103 """
82104
83105 request_body = self .__handle_parameters (locals ())
@@ -93,6 +115,8 @@ def removeAdmin(self, groupId: str, participantChatId: str) -> Response:
93115 """
94116 The method removes a participant from group chat administration
95117 rights.
118+
119+ https://green-api.com/en/docs/api/groups/RemoveAdmin/
96120 """
97121
98122 request_body = self .__handle_parameters (locals ())
@@ -105,7 +129,11 @@ def removeAdmin(self, groupId: str, participantChatId: str) -> Response:
105129 )
106130
107131 def setGroupPicture (self , groupId : str , path : str ) -> Response :
108- """The method sets a group picture."""
132+ """
133+ The method sets a group picture.
134+
135+ https://green-api.com/en/docs/api/groups/SetGroupPicture/
136+ """
109137
110138 request_body = self .__handle_parameters (locals ())
111139
@@ -124,6 +152,8 @@ def setGroupPicture(self, groupId: str, path: str) -> Response:
124152 def leaveGroup (self , groupId : str ) -> Response :
125153 """
126154 The method makes the current account user leave the group chat.
155+
156+ https://green-api.com/en/docs/api/groups/LeaveGroup/
127157 """
128158
129159 request_body = self .__handle_parameters (locals ())
0 commit comments