2024-04-27 15:48:55 发布
网友
我的代码片段被缩短到几百行。这是我用来上传它们的代码
self.client.api_call( 'files.upload', channels=channel_id, content=msg, as_user='true:', filetype=filetype, filename=filename )
我还需要设置什么其他参数来允许发布整个代码段?在
没有。这个限制是由files.upload方法的Slack API强加的。在
files.upload
引用documentation:
There is a 1 megabyte file size limit for files uploaded as snippets.
没有。这个限制是由
files.upload
方法的Slack API强加的。在引用documentation:
相关问题 更多 >
编程相关推荐