R
R
Rotyin2021-12-17 22:05:01
Python
Rotyin, 2021-12-17 22:05:01

How can a class be converted to str and vice versa?

client = telethon.TelegramClient(akk,api_id,api_hash)
self.dop_list[akk] = [client]


It turns out: TelegramBaseClient.__init__.._Loggers

I will transform this class into a string:

str(TelegramBaseClient.__init__.<locals>._Loggers)

how can I return this class back, but not as a string?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asysprotri, 2021-12-17
@asysprotri

You can save immediately by class, and not translate into a string

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question