GithubHelp home page GithubHelp logo

Seems like DC2 change IP about pyrogram HOT 3 CLOSED

Jafte avatar Jafte commented on May 8, 2024
Seems like DC2 change IP

from pyrogram.

Comments (3)

delivrance avatar delivrance commented on May 8, 2024 1

Yep, It's 149.154.167.50 for me too, but that's just the "entry point" where you can execute GetConfig to retrieve all the updated DC IPs and here is where I take them.

from pyrogram.

Jafte avatar Jafte commented on May 8, 2024
>>> r = client.send(functions.help.GetConfig())
>>> print(r)
{
    "_": "types.Config",
    "phonecalls_enabled": false,
    "default_p2p_contacts": false,
    "date": 1520436593,
    "expires": 1520440785,
    "test_mode": false,
    "this_dc": 1,
    "dc_options": [
        {
            "_": "types.DcOption",
            "ipv6": false,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 1,
            "ip_address": "149.154.175.50",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": true,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 1,
            "ip_address": "2001:0b28:f23d:f001:0000:0000:0000:000a",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": false,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 2,
            "ip_address": "149.154.167.51",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": false,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": true,
            "id": 2,
            "ip_address": "149.154.167.51",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": true,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 2,
            "ip_address": "2001:067c:04e8:f002:0000:0000:0000:000a",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": false,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 3,
            "ip_address": "149.154.175.100",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": true,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 3,
            "ip_address": "2001:0b28:f23d:f003:0000:0000:0000:000a",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": false,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 4,
            "ip_address": "149.154.167.92",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": true,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 4,
            "ip_address": "2001:067c:04e8:f004:0000:0000:0000:000a",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": false,
            "media_only": true,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 4,
            "ip_address": "149.154.165.120",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": false,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 5,
            "ip_address": "91.108.56.113",
            "port": 443
        },
        {
            "_": "types.DcOption",
            "ipv6": true,
            "media_only": false,
            "tcpo_only": false,
            "cdn": false,
            "static": false,
            "id": 5,
            "ip_address": "2001:0b28:f23f:f005:0000:0000:0000:000a",
            "port": 443
        }
    ],
    "chat_size_max": 200,
    "megagroup_size_max": 100000,
    "forwarded_count_max": 100,
    "online_update_period_ms": 120000,
    "offline_blur_timeout_ms": 5000,
    "offline_idle_timeout_ms": 30000,
    "online_cloud_timeout_ms": 300000,
    "notify_cloud_delay_ms": 30000,
    "notify_default_delay_ms": 1500,
    "chat_big_size": 10,
    "push_chat_period_ms": 60000,
    "push_chat_limit": 2,
    "saved_gifs_limit": 200,
    "edit_time_limit": 172800,
    "rating_e_decay": 2419200,
    "stickers_recent_limit": 30,
    "stickers_faved_limit": 5,
    "channels_read_media_period": 604800,
    "tmp_sessions": null,
    "pinned_dialogs_count_max": 5,
    "call_receive_timeout_ms": 20000,
    "call_ring_timeout_ms": 90000,
    "call_connect_timeout_ms": 30000,
    "call_packet_timeout_ms": 10000,
    "me_url_prefix": "https://t.me/",
    "suggested_lang_code": null,
    "lang_pack_version": null,
    "disabled_features": []
}

from pyrogram.

Jafte avatar Jafte commented on May 8, 2024

hm... strange. "Production configuration" from my.telegram.org give me 149.154.167.50

from pyrogram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.