@@ -38,7 +38,7 @@ def __init__(self, channel_access_token, endpoint=DEFAULT_API_ENDPOINT,
38
38
:param str endpoint: (optional) Default is https://api.line.me
39
39
:param timeout: (optional) How long to wait for the server
40
40
to send data before giving up, as a float,
41
- or a (connect timeout, readtimeout ) float tuple.
41
+ or a (connect timeout, read timeout ) float tuple.
42
42
Default is linebot.http_client.HttpClient.DEFAULT_TIMEOUT
43
43
:type timeout: float | tuple(float, float)
44
44
:param http_client: (optional) Default is
@@ -78,7 +78,7 @@ def reply_message(self, reply_token, messages, timeout=None):
78
78
list[T <= :py:class:`linebot.models.send_messages.SendMessage`]
79
79
:param timeout: (optional) How long to wait for the server
80
80
to send data before giving up, as a float,
81
- or a (connect timeout, readtimeout ) float tuple.
81
+ or a (connect timeout, read timeout ) float tuple.
82
82
Default is self.http_client.timeout
83
83
:type timeout: float | tuple(float, float)
84
84
"""
@@ -108,7 +108,7 @@ def push_message(self, to, messages, timeout=None):
108
108
list[T <= :py:class:`linebot.models.send_messages.SendMessage`]
109
109
:param timeout: (optional) How long to wait for the server
110
110
to send data before giving up, as a float,
111
- or a (connect timeout, readtimeout ) float tuple.
111
+ or a (connect timeout, read timeout ) float tuple.
112
112
Default is self.http_client.timeout
113
113
:type timeout: float | tuple(float, float)
114
114
"""
@@ -140,7 +140,7 @@ def multicast(self, to, messages, timeout=None):
140
140
list[T <= :py:class:`linebot.models.send_messages.SendMessage`]
141
141
:param timeout: (optional) How long to wait for the server
142
142
to send data before giving up, as a float,
143
- or a (connect timeout, readtimeout ) float tuple.
143
+ or a (connect timeout, read timeout ) float tuple.
144
144
Default is self.http_client.timeout
145
145
:type timeout: float | tuple(float, float)
146
146
"""
@@ -166,7 +166,7 @@ def get_profile(self, user_id, timeout=None):
166
166
:param str user_id: User ID
167
167
:param timeout: (optional) How long to wait for the server
168
168
to send data before giving up, as a float,
169
- or a (connect timeout, readtimeout ) float tuple.
169
+ or a (connect timeout, read timeout ) float tuple.
170
170
Default is self.http_client.timeout
171
171
:type timeout: float | tuple(float, float)
172
172
:rtype: :py:class:`linebot.models.responses.Profile`
@@ -188,21 +188,18 @@ def get_group_member_profile(self, group_id, user_id, timeout=None):
188
188
the bot is in. This can be the user ID of a user who has
189
189
not added the bot as a friend or has blocked the bot.
190
190
191
- :param str user_id: User ID
192
191
:param str group_id: Group ID
192
+ :param str user_id: User ID
193
193
:param timeout: (optional) How long to wait for the server
194
194
to send data before giving up, as a float,
195
- or a (connect timeout, readtimeout ) float tuple.
195
+ or a (connect timeout, read timeout ) float tuple.
196
196
Default is self.http_client.timeout
197
197
:type timeout: float | tuple(float, float)
198
198
:rtype: :py:class:`linebot.models.responses.Profile`
199
199
:return: Profile instance
200
200
"""
201
201
response = self ._get (
202
- '/v2/bot/group/{group_id}/member/{user_id}' .format (
203
- user_id = user_id ,
204
- group_id = group_id
205
- ),
202
+ '/v2/bot/group/{group_id}/member/{user_id}' .format (group_id = group_id , user_id = user_id ),
206
203
timeout = timeout
207
204
)
208
205
@@ -217,21 +214,18 @@ def get_room_member_profile(self, room_id, user_id, timeout=None):
217
214
the bot is in. This can be the user ID of a user who has
218
215
not added the bot as a friend or has blocked the bot.
219
216
220
- :param str user_id: User ID
221
217
:param str room_id: Room ID
218
+ :param str user_id: User ID
222
219
:param timeout: (optional) How long to wait for the server
223
220
to send data before giving up, as a float,
224
- or a (connect timeout, readtimeout ) float tuple.
221
+ or a (connect timeout, read timeout ) float tuple.
225
222
Default is self.http_client.timeout
226
223
:type timeout: float | tuple(float, float)
227
224
:rtype: :py:class:`linebot.models.responses.Profile`
228
225
:return: Profile instance
229
226
"""
230
227
response = self ._get (
231
- '/v2/bot/room/{room_id}/member/{user_id}' .format (
232
- user_id = user_id ,
233
- room_id = room_id
234
- ),
228
+ '/v2/bot/room/{room_id}/member/{user_id}' .format (room_id = room_id , user_id = user_id ),
235
229
timeout = timeout
236
230
)
237
231
@@ -247,7 +241,7 @@ def get_message_content(self, message_id, timeout=None):
247
241
:param str message_id: Message ID
248
242
:param timeout: (optional) How long to wait for the server
249
243
to send data before giving up, as a float,
250
- or a (connect timeout, readtimeout ) float tuple.
244
+ or a (connect timeout, read timeout ) float tuple.
251
245
Default is self.http_client.timeout
252
246
:type timeout: float | tuple(float, float)
253
247
:rtype: :py:class:`linebot.models.responses.MessageContent`
@@ -270,7 +264,7 @@ def leave_group(self, group_id, timeout=None):
270
264
:param str group_id: Group ID
271
265
:param timeout: (optional) How long to wait for the server
272
266
to send data before giving up, as a float,
273
- or a (connect timeout, readtimeout ) float tuple.
267
+ or a (connect timeout, read timeout ) float tuple.
274
268
Default is self.http_client.timeout
275
269
:type timeout: float | tuple(float, float)
276
270
"""
@@ -289,7 +283,7 @@ def leave_room(self, room_id, timeout=None):
289
283
:param str room_id: Room ID
290
284
:param timeout: (optional) How long to wait for the server
291
285
to send data before giving up, as a float,
292
- or a (connect timeout, readtimeout ) float tuple.
286
+ or a (connect timeout, read timeout ) float tuple.
293
287
Default is self.http_client.timeout
294
288
:type timeout: float | tuple(float, float)
295
289
"""
0 commit comments