Skip to content

Commit 362d44b

Browse files
committed
refactor(raw): remove incorrectly generated access point functions
1 parent a5ab4a9 commit 362d44b

15 files changed

Lines changed: 5 additions & 406 deletions

File tree

compiler/api/source/main_api.tl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020
// error#c4b9f9bb code:int text:string = Error;
2121

22-
ipPort#d433ad73 ipv4:int port:int = IpPort;
23-
ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort;
24-
accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector<IpPort> = AccessPointRule;
25-
help.configSimple#5a592a6c date:int expires:int rules:vector<AccessPointRule> = help.ConfigSimple;
22+
//ipPort#d433ad73 ipv4:int port:int = IpPort;
23+
//ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort;
24+
//accessPointRule#4679b65f phone_prefix_rules:string dc_id:int ips:vector<IpPort> = AccessPointRule;
25+
//help.configSimple#5a592a6c date:int expires:int rules:vector<AccessPointRule> = help.ConfigSimple;
2626

2727
inputPeerPhotoFileLocationLegacy#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation;
2828
inputStickerSetThumbLegacy#dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation;

pyrogram/raw/all.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@
7676
0xf3427b8c: "pyrogram.raw.functions.PingDelayDisconnect",
7777
0xe7512126: "pyrogram.raw.functions.DestroySession",
7878
0x9a5f6e95: "pyrogram.raw.functions.contest.SaveDeveloperInfo",
79-
0xd433ad73: "pyrogram.raw.functions.IpPort",
80-
0x37982646: "pyrogram.raw.functions.IpPortSecret",
81-
0x4679b65f: "pyrogram.raw.functions.AccessPointRule",
82-
0x5a592a6c: "pyrogram.raw.functions.help.ConfigSimple",
8379
0x27d69997: "pyrogram.raw.functions.InputPeerPhotoFileLocationLegacy",
8480
0xdbaeae9: "pyrogram.raw.functions.InputStickerSetThumbLegacy",
8581
0xdd289f8e: "pyrogram.raw.functions.InvokeWithBusinessConnectionPrefix",

pyrogram/raw/base/access_point_rule.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ class AccessPointRule(metaclass=BaseTypeMeta): # type: ignore
4040
:columns: 2
4141
4242
- :obj:`AccessPointRule <pyrogram.raw.types.AccessPointRule>`
43-
44-
See Also:
45-
This object can be returned by 1 method:
46-
47-
.. hlist::
48-
:columns: 2
49-
50-
- :obj:`AccessPointRule <pyrogram.raw.functions.AccessPointRule>`
5143
"""
5244

5345
QUALNAME = "pyrogram.raw.base.AccessPointRule"

pyrogram/raw/base/help/config_simple.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ class ConfigSimple(metaclass=BaseTypeMeta): # type: ignore
4040
:columns: 2
4141
4242
- :obj:`help.ConfigSimple <pyrogram.raw.types.help.ConfigSimple>`
43-
44-
See Also:
45-
This object can be returned by 1 method:
46-
47-
.. hlist::
48-
:columns: 2
49-
50-
- :obj:`help.ConfigSimple <pyrogram.raw.functions.help.ConfigSimple>`
5143
"""
5244

5345
QUALNAME = "pyrogram.raw.base.help.ConfigSimple"

pyrogram/raw/base/ip_port.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ class IpPort(metaclass=BaseTypeMeta): # type: ignore
4141
4242
- :obj:`IpPort <pyrogram.raw.types.IpPort>`
4343
- :obj:`IpPortSecret <pyrogram.raw.types.IpPortSecret>`
44-
45-
See Also:
46-
This object can be returned by 2 methods:
47-
48-
.. hlist::
49-
:columns: 2
50-
51-
- :obj:`IpPort <pyrogram.raw.functions.IpPort>`
52-
- :obj:`IpPortSecret <pyrogram.raw.functions.IpPortSecret>`
5344
"""
5445

5546
QUALNAME = "pyrogram.raw.base.IpPort"

pyrogram/raw/functions/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
from .ping import Ping
3333
from .ping_delay_disconnect import PingDelayDisconnect
3434
from .destroy_session import DestroySession
35-
from .ip_port import IpPort
36-
from .ip_port_secret import IpPortSecret
37-
from .access_point_rule import AccessPointRule
3835
from .input_peer_photo_file_location_legacy import InputPeerPhotoFileLocationLegacy
3936
from .input_sticker_set_thumb_legacy import InputStickerSetThumbLegacy
4037
from .invoke_with_business_connection_prefix import InvokeWithBusinessConnectionPrefix
@@ -53,4 +50,4 @@
5350
from .invoke_with_apns_secret import InvokeWithApnsSecret
5451
from .invoke_with_re_captcha import InvokeWithReCaptcha
5552
from .null import Null
56-
from . import contest, help, auth, account, users, contacts, messages, updates, photos, upload, channels, bots, payments, stickers, phone, langpack, folders, stats, chatlists, stories, premium, smsjobs, fragment
53+
from . import contest, auth, account, users, contacts, messages, updates, photos, upload, help, channels, bots, payments, stickers, phone, langpack, folders, stats, chatlists, stories, premium, smsjobs, fragment

pyrogram/raw/functions/access_point_rule.py

Lines changed: 0 additions & 85 deletions
This file was deleted.

pyrogram/raw/functions/help/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# All changes made in this file will be lost! #
2323
# # # # # # # # # # # # # # # # # # # # # # # #
2424

25-
from .config_simple import ConfigSimple
2625
from .get_config import GetConfig
2726
from .get_nearest_dc import GetNearestDc
2827
from .get_app_update import GetAppUpdate

pyrogram/raw/functions/help/config_simple.py

Lines changed: 0 additions & 85 deletions
This file was deleted.

pyrogram/raw/functions/ip_port.py

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)