24 lines
641 B
Markdown
24 lines
641 B
Markdown
---
|
|
title: setProxy
|
|
description: Sets proxy server for network requests. Can be called before authorization
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Method: setProxy
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
|
|
|
|
|
|
Sets proxy server for network requests. Can be called before authorization
|
|
|
|
### Parameters:
|
|
|
|
| Name | Type | Description | Required |
|
|
|----------|---------------|-------------|----------|
|
|
|proxy|[Proxy](../types/Proxy.md) | The proxy to use. You can specify null to remove proxy server | Optional|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|