如何使用python搜索电报公共频道列表

时间:2019-12-02 13:35:50

标签: python python-3.x telegram telegram-bot python-telegram-bot

我将要拥有一个机器人,并假设从用户那里获取输入并通过多个渠道进行搜索并返回找到的值

我找不到任何图书馆,也没有能力通过帖子找到特定的单词,所以我停了下来。 现在 “我还没有代码,而这正是我期望的代码”

    # for ex. these channels have content about tourism and travel
    channel_list = ["channel1", "channel2", "channel3"]
    search_key = input("what are you looking for?")
    #user inputs canyon
    for channel in channel_list:
        #here it should search through channel and find several (if there is for ex. 7) posts with search_key(canyon) in them and return them and go to next channel so far to end of channel_list

0 个答案:

没有答案