上传文件到 Telegram Server 的方法
The ways of uploading files to Telegram Server
正如我所见,目前只有一种方法可以将任何文件上传到 Telegram 服务器并抛出 TelegramBotApi。 (喜欢SendPhoto)
我的目标 是上传任何文件,保存收到的响应中的 ID,然后 post 稍后将此文件保存到另一个频道。
现在,我已经创建了一个私人频道来存储所有将要发送的文件。
问题是:有没有办法不用"storage channel"直接将文件上传到Telegram服务器。
The question is: is there a ways of uploading files to Telegram Server without "storage channel" i.e. directly.
不,目前您的解决方案没有替代方案。您应该将文件发送给用户或发送到频道,然后存储来自响应的 file_id
以供以后使用。
自从 Telegram Bot API states that
file_id
is unique for each individual bot and can't be transferred from one bot to another.
,此操作无法由其他机器人自动执行。
正如我所见,目前只有一种方法可以将任何文件上传到 Telegram 服务器并抛出 TelegramBotApi。 (喜欢SendPhoto)
我的目标 是上传任何文件,保存收到的响应中的 ID,然后 post 稍后将此文件保存到另一个频道。
现在,我已经创建了一个私人频道来存储所有将要发送的文件。
问题是:有没有办法不用"storage channel"直接将文件上传到Telegram服务器。
The question is: is there a ways of uploading files to Telegram Server without "storage channel" i.e. directly.
不,目前您的解决方案没有替代方案。您应该将文件发送给用户或发送到频道,然后存储来自响应的 file_id
以供以后使用。
自从 Telegram Bot API states that
file_id
is unique for each individual bot and can't be transferred from one bot to another.
,此操作无法由其他机器人自动执行。