2017-08-25 15:05:53 +02:00
|
|
|
---
|
|
|
|
title: setProxy
|
|
|
|
description: Sets proxy server for network requests. Can be called before authorization
|
|
|
|
---
|
|
|
|
## 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
|
|
|
|
|
|
|
|
### Params:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2018-02-18 14:18:18 +01:00
|
|
|
|proxy|[Proxy](../types/Proxy.md) | Optional|The proxy to use. You can specify null to remove proxy server|
|
2017-08-25 15:05:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|
|
|