Gangsta:从头开始使用Python的电报聊天机器人



代码:https://github.com/SouravJohar/gangsta
电报:web.telegram.org
Gizoogle:www.gizoogle.net
Gizoogle-py:https://github.com/chafla/gizoogle-py。

40 comments
  1. ============= RESTART: C:UserssandhuDesktoppeter_botserver.py =============

    Traceback (most recent call last):

    File "C:UserssandhuDesktoppeter_botserver.py", line 4, in <module>

    bot = telegram_chatbot("config.cfg")

    File "C:UserssandhuDesktoppeter_botbot.py", line 9, in _init_

    self.token = self.read_token_from_config_file(config)

    File "C:UserssandhuDesktoppeter_botbot.py", line 27, in read_token_from_config_file

    return parser.get('creds', 'token')

    File "C:UserssandhuAppDataLocalProgramsPythonPython38libconfigparser.py", line 781, in get

    d = self._unify_values(section, vars)

    File "C:UserssandhuAppDataLocalProgramsPythonPython38libconfigparser.py", line 1149, in _unify_values

    raise NoSectionError(section) from None

    configparser.NoSectionError: No section: 'creds'

    my error please help

  2. Traceback (most recent call last):

    File "C:/Users/mahdi/PycharmProjects/pybot/server.py", line 25, in <module>

    reply = make_reply(message)

    File "C:/Users/mahdi/PycharmProjects/pybot/server.py", line 10, in make_reply

    reply = gizoogle.text(msg)

    File "C:UsersmahdiPycharmProjectspybotgizoogle.py", line 13, in text

    soup = bs4.BeautifulSoup(soup_input, "lxml")

    File "C:Usersmahdi.virtualenvspybotlibsite-packagesbs4_init__.py", line 225, in __init_

    raise FeatureNotFound(

    bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

  3. Traceback (most recent call last):

    File "C:/Users/thispc/PycharmProjects/telegrambot/server.py", line 16, in <module>

    updates = updates["result"]

    KeyError: 'result'
    what changes i do this ???

  4. Traceback (most recent call last):

    File "C:/Users/thispc/PycharmProjects/telegrambot/server.py", line 16, in <module>

    updates = updates["result"]

    KeyError: 'result'
    what changes i do this ???

  5. Traceback (most recent call last):

    File "C:/Users/thispc/PycharmProjects/telegrambot/server.py", line 16, in <module>

    updates = updates["result"]

    KeyError: 'result'
    what changes i do this ???

  6. Bro can u make tut on making userbot who can send animated text messages and some other animations who can also do text to speech and some other cool commands

  7. can i attach telegram api to android application…. so that i send my message to telegram and receive it on telegram+android application….. please guide me

  8. you should try writing blogs as well in the side so programmers who re following you will refer to it without missing any instrution or we guys can crosschecck

Comments are closed.