#NEWLINE# def __init__( self , integration_url , bot_name = None , icon_url = None , icon_emoji = None , channel = None , markdown = None ) : #NEWLINE# #INDENT# "\n        Creates a IncomingWebhooksSender object to send messages to a given\n        Slack team.\n\n        :param integration_url: The incoming webhook integration URL. This must\n                                be supplied at creation (or else the bot is\n                                useless).\n        :param bot_name:        The name the bot will use when posting.\n        :param icon_url:        A URL to use as the bot's icon.\n        :param icon_emoji:      A colon emoji to use as the bot's icon. This\n                                overrides 'icon_url'.\n        :param channel:         The default channel for this bot to post to.\n        :param markdown:        Whether to allow markdown (defaults to True if\n                                not specified).\n        " #NEWLINE# self . url = integration_url #NEWLINE# self . username = bot_name #NEWLINE# self . icon_url = icon_url #NEWLINE# self . icon_emoji = icon_emoji #NEWLINE# self . channel = channel #NEWLINE# self . mrkdwn = channel #NEWLINE# if ( ( not self . username ) and ( self . username is not None ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Null username specified.' ) #NEWLINE# #UNINDENT# if ( ( not self . channel ) and ( self . channel is not None ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Null channel specified.' ) #NEWLINE# #UNINDENT# if ( ( channel is not None ) and ( not self . channel . startswith ( '#' ) ) and ( not self . channel . startswith ( '@' ) ) ) : #NEWLINE# #INDENT# raise ValueError ( ( "Invalid channel. Need a '#' for channels or '@' for direct " + 'messages.' ) )