MadelineProtoDocs/old_docs/API_docs_v89/constructors/accessPointRule.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.0 KiB

title description image
accessPointRule Access point rule https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: accessPointRule

Back to constructors index

Access point rule

Attributes:

Name Type Required Description
phone_prefix_rules string Yes Phone prefix rules
dc_id int Yes DC ID
ips Array of IpPort Yes Ips

Type: AccessPointRule

Example:

$accessPointRule = ['_' => 'accessPointRule', 'phone_prefix_rules' => 'string', 'dc_id' => int, 'ips' => [IpPort, IpPort]];

PWRTelegram json-encoded version:

{"_": "accessPointRule", "phone_prefix_rules": "string", "dc_id": int, "ips": [IpPort]}

Or, if you're into Lua:

accessPointRule={_='accessPointRule', phone_prefix_rules='string', dc_id=int, ips={IpPort}}