gpt4 book ai didi

telegram - 如何从特定格式的 Telegram channel 重定向消息?[ Telegram Bot ]

转载 作者:行者123 更新时间:2023-12-04 14:29:28 34 4
gpt4 key购买 nike

我有很多 Telegram channel ,他们以 24\7 的格式发送消息

  • “购买 usdjpy sl 145.2 tp 167.4”
  • “eurusd 卖出 sl 145.2 tp 167.4”
  • “eurusd sl 145.2 tp 167.4 卖出”

  • 或按某种顺序这些词

    我的想法是创建应用程序来检查每个 channel 的消息,如果它采用上述格式,则将其重定向到我的 channel 。

    Telegram api 允许吗?

    最佳答案

    我写了一个简单的 python 代码,使用 telethon python 模块。
    该代码的主要作用是通过 Telegram 转发来自各个 Telegram channel 的消息 客户端 API 到您选择的 channel 。你可以找到它here .

    使用客户端 API,您可以从用户所属的组和 channel 中读取消息。不需要机器人。
    telethon模块可以轻松过滤您想要阅读的消息。随意 fork 项目并进行所需的更改。您应该查看模块文档 here .

    关于telegram - 如何从特定格式的 Telegram channel 重定向消息?[ Telegram Bot ],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42430232/

    34 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com