Red Hat Camel K is deprecated
Red Hat Camel K is deprecated and the End of Life date for this product is June 30, 2025. For help migrating to the current go-to solution, Red Hat build of Apache Camel, see the Migration Guide.第 54 章 Telegram 源
重要
Telegram Source Kamelet 只是一个技术预览功能。技术预览功能不受红帽产品服务等级协议(SLA)支持,且功能可能并不完整。红帽不推荐在生产环境中使用它们。
这些技术预览功能可以使用户提早试用新的功能,并有机会在开发阶段提供反馈意见。有关红帽技术预览功能支持范围的更多信息,请参阅 https://access.redhat.com/support/offerings/techpreview。
接收人们发送给您的 Telegram bot 的所有消息。
要创建 bot,请使用 Telegram 应用联系 @botfather 帐户。
源将以下标头附加到消息中:
-
chat-id
/ce-chatid
:聊天消息的 ID。
54.1. 配置选项
下表总结了 telegram-source
Kamelet 的配置选项:
属性 | 名称 | 描述 | 类型 | 默认 | Example |
---|---|---|---|---|---|
authorizationToken * | 令牌 | 在 Telegram 上访问 bot 的令牌。您可以从 Telegram @botfather 获取它。 | 字符串 |
注意
带星号(*)标记的字段是必需的。