How to resolve input prompts?

Hello, community.
I try to create appdaemon app to parse some messages from telegram. I’ve already tested it locally. But, to connect to my acc ‘telethon’ lib requires phone and then the code telegram sent.

So, when you run it locally in console you see the prompt input.
Inside appdaemon I can only see the error:
lambda: input('Please enter your phone (or bot token): '), EOFError: EOF when reading a line

Is it possible to resolve it somehow?

solved my problem by instantiating telegram client with string session