GithubHelp home page GithubHelp logo

mortafix / autoconv-telegram-python Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 766 KB

Python package to handle automatic conversation in a Telegram bot.

License: MIT License

Python 100.00%
bot python telegram telegram-bot telegram-bot-api

autoconv-telegram-python's People

Contributors

mortafix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autoconv-telegram-python's Issues

add_text() allows every Filter to succeed.

As the title says, add_text() allows every Filter to go through. For example, if you send a media in a State with the add_text(), it goes on the default state right after.

Back Button does't work properly on version 0.0.49

FIRST ERROR:
stopping the Bot while in a state with back button enabled will cause an exception when restarted the bot by pressing the back button.

Exception:
'NoneType' object has no attribute 'name'

Traceback:
  File "C:\Users\Andrea\Dev\Python\telegram_bots\channel_manager\venv\lib\site-packages\autoconv\autoconv_handler.py", line 359, in manage_conversation
    state = self._change_state(typed_data)
  File "C:\Users\Andrea\Dev\Python\telegram_bots\channel_manager\venv\lib\site-packages\autoconv\autoconv_handler.py", line 92, in _change_state
    {"prev_state": self.prev_state.name, "state": new_state.name}

SECOND ERROR:
True raises AttributeError.

Traceback (most recent call last):
  File "bot.py", line 7, in <module>
    from states import STATE, autoconv, errore
  File "C:\Users\Andrea\Dev\Python\telegram_bots\channel_manager\states.py", line 76, in <module>
    bit.add_routes(wip, default=menu, back=True)
  File "pydantic\decorator.py", line 52, in pydantic.decorator.validate_arguments.validate.wrapper_function
    """
  File "pydantic\decorator.py", line 145, in pydantic.decorator.ValidatedFunction.call
    names = set([name] + [arg.strip(' *') for arg in
  File "pydantic\decorator.py", line 142, in pydantic.decorator.ValidatedFunction.init_model_instance
    if mo is None:
  File "pydantic\main.py", line 400, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for AddRoutes
back
  instance of State expected (type=type_error.arbitrary_type; expected_arbitrary_type=State)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.