ChatCrawlersearch across public Telegram Open the app
P

Python

snapshot for December 2025
December 2025 ×
28 December 2025
good morning, i have a question about a variable value. this is the code: client = Client() client = await client.close() can i directly assign client.close() to the client to set it to None, or do I have to close it first and then set it to None?
so client = Client() await client.close() client = None
H
thx to those who respond
H
(method) def close() -> CoroutineType[Any, Any, None]
And what you are going to do with it
Why don't you check the docs and see?
G
Can it fail closing?
Let's say it never does the request (i'm assuming) because you got no access to the api.
H
if u want i can show you more of the code, so u can understand better what i'm asking sorry again for my english
It really doesn't matter what you do, there are no implications
G
If the value is None, then None would just None
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog