Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/352.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 松弛API上载代码段长度_Python_Slack Api_Slack - Fatal编程技术网

Python 松弛API上载代码段长度

Python 松弛API上载代码段长度,python,slack-api,slack,Python,Slack Api,Slack,我的代码片段被截断为几百行。这是我用来上传它们的代码 self.client.api_call( 'files.upload', channels=channel_id, content=msg, as_user='true:', filetype=filetype, filename=filename ) 我还需要设置什么参数来允许发布整个代码段?没有任何参数。此限制是由Slack API对文件施加的。上载方法 引述: 作为代码

我的代码片段被截断为几百行。这是我用来上传它们的代码

 self.client.api_call(
     'files.upload',
     channels=channel_id,
     content=msg,
     as_user='true:',
     filetype=filetype,
     filename=filename
 )

我还需要设置什么参数来允许发布整个代码段?

没有任何参数。此限制是由Slack API对
文件施加的。上载
方法

引述:

作为代码段上载的文件有1 MB的文件大小限制