How from the following function to get the variable login and password from another module?
def logpass(message): logp = message.text.split(':') login = logp[0] password = logp[1] The module in which the login and password take the value is called bot.py, the module in which are called example.py. Give an example using
print() I do not know whether the return is appropriate, since the function is not called explicitly. I use decorators from telebot
@bot.message_handler(content_types = ['text']) def logpass(message):
login = bot.login? - MaxUlogpass()declared inbot.py??? - MaxUloginandpassworddefined only in the function, then I think not at all, and if they are also defined outside the function, thenbot.login- MaxU