@@ -232,9 +232,10 @@ def get_channel_id(self, channel_name):
232
232
233
233
234
234
class Chat (BaseAPI ):
235
- def post_message (self , channel , text , username = None , as_user = None , parse = None ,
236
- link_names = None , attachments = None , unfurl_links = None ,
237
- unfurl_media = None , icon_url = None , icon_emoji = None ):
235
+ def post_message (self , channel , text , username = None , as_user = None ,
236
+ parse = None , link_names = None , attachments = None ,
237
+ unfurl_links = None , unfurl_media = None , icon_url = None ,
238
+ icon_emoji = None ):
238
239
239
240
# Ensure attachments are json encoded
240
241
if attachments :
@@ -483,7 +484,8 @@ def post(self, data):
483
484
class Slacker (object ):
484
485
oauth = OAuth (timeout = DEFAULT_TIMEOUT )
485
486
486
- def __init__ (self , token , incoming_webhook_url = None , timeout = DEFAULT_TIMEOUT ):
487
+ def __init__ (self , token , incoming_webhook_url = None ,
488
+ timeout = DEFAULT_TIMEOUT ):
487
489
self .im = IM (token = token , timeout = timeout )
488
490
self .api = API (token = token , timeout = timeout )
489
491
self .rtm = RTM (token = token , timeout = timeout )
@@ -499,4 +501,5 @@ def __init__(self, token, incoming_webhook_url=None, timeout=DEFAULT_TIMEOUT):
499
501
self .channels = Channels (token = token , timeout = timeout )
500
502
self .presence = Presence (token = token , timeout = timeout )
501
503
self .reactions = Reactions (token = token , timeout = timeout )
502
- self .incomingwebhook = IncomingWebhook (url = incoming_webhook_url , timeout = timeout )
504
+ self .incomingwebhook = IncomingWebhook (url = incoming_webhook_url ,
505
+ timeout = timeout )
0 commit comments