Client sessionΒΆ Client sessions is used for interacting with API server. Use Custom API server TelegramAPIServer TelegramAPIServer.api_url() TelegramAPIServer.base TelegramAPIServer.file TelegramAPIServer.file_url() TelegramAPIServer.from_base() TelegramAPIServer.is_local TelegramAPIServer.wrap_local_file Base BaseSession BaseSession.check_response() BaseSession.close() BaseSession.make_request() BaseSession.prepare_value() BaseSession.stream_content() aiohttp AiohttpSession Usage example Proxy requests in AiohttpSession Authorization Proxy chains Client session middlewares How to register client session middleware? Register using register method Register using decorator Example Class based session middleware Function based session middleware