Inherits Function.
Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.
Returns object_ptr<Seconds>.
Public Fields | |
| object_ptr< proxy > | proxy_ |
| The proxy to test; pass null to ping a Telegram server without a proxy. | |
Public Types | |
| using | ReturnType = object_ptr< seconds > |
| Typedef for the type returned by the function. | |
Public Instance Methods | |
| pingProxy () | |
| pingProxy (object_ptr< proxy > &&proxy_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| virtual void | store (TlStorerUnsafe &s) const |
| virtual void | store (TlStorerCalcLength &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject (TlObject &&)=default | |
| TlObject & | operator= (TlObject &&)=default |
| virtual | ~TlObject ()=default |
Static Public Attributes | |
| static const std::int32_t | ID = 2144501959 |
| Identifier uniquely determining a type of the object. | |
| pingProxy | ( | ) |
Default constructor for a function, which computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.
Returns object_ptr<Seconds>.
|
explicit |
Creates a function, which computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.
Returns object_ptr<Seconds>.
| [in] | proxy_ | The proxy to test; pass null to ping a Telegram server without a proxy. |
|
finalvirtual |