Skip to content

Commit a536e1e

Browse files
committed
add documentation for get group/room member profile api
1 parent e4e1ff3 commit a536e1e

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.rst

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ https://devdocs.line.me/en/#multicast
125125
126126
line_bot_api.multicast(['to1', 'to2'], TextSendMessage(text='Hello World!'))
127127
128-
129128
get\_profile(self, user\_id, timeout=None)
130129
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131130

@@ -142,6 +141,40 @@ https://devdocs.line.me/en/#bot-api-get-profile
142141
print(profile.picture_url)
143142
print(profile.status_message)
144143
144+
get\_group\_member\_profile(self, group\_id, user\_id, timeout=None)
145+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146+
147+
Gets the user profile of a member of a group that
148+
the bot is in. This can be the user ID of a user who has
149+
not added the bot as a friend or has blocked the bot.
150+
151+
https://devdocs.line.me/en/#get-group-room-member-profile
152+
153+
.. code:: python
154+
155+
profile = line_bot_api.get_group_member_profile(group_id, user_id)
156+
157+
print(profile.display_name)
158+
print(profile.user_id)
159+
print(profile.picture_url)
160+
161+
get\_room\_member\_profile(self, room\_id, user\_id, timeout=None)
162+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
163+
164+
Gets the user profile of a member of a room that
165+
the bot is in. This can be the user ID of a user who has
166+
not added the bot as a friend or has blocked the bot.
167+
168+
https://devdocs.line.me/en/#get-group-room-member-profile
169+
170+
.. code:: python
171+
172+
profile = line_bot_api.get_room_member_profile(room_id, user_id)
173+
174+
print(profile.display_name)
175+
print(profile.user_id)
176+
print(profile.picture_url)
177+
145178
get\_message\_content(self, message\_id, timeout=None)
146179
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
147180

0 commit comments

Comments
 (0)