如何设置电报Web客户端使用我自己的服务器?

我正在使用与自己的服务器一起工作的电报Web客户端,因此我要像这样更改服务器配置

.factory('MtpDcConfigurator',function () {
var sslSubdomains = ['pluto','venus','aurora','vesta','flora']

var dcOptions = Config.Modes.test ?
  [{
      id: 1,host: '103.107.181.37',port: 12345
    },{
      id: 2,port: 12345
    }
  ] : [{
      id: 1,port: 12345
    }
  ]

var chosenServers = {}

function chooseServer(dcID,upload) {
  if (chosenServers[dcID] === undefined) {
    var chosenServer = false,i,dcOption

    if (Config.Modes.ssl || !Config.Modes.http) {
      var subdomain = sslSubdomains[dcID - 1] + (upload ? '-1' : '')
      var path = Config.Modes.test ? 'apiw_test1' : 'apiw1'
      chosenServer = 'https://103.107.181.37:12345/' + path
      return chosenServer
    }

    for (i = 0; i < dcOptions.length; i++) {
      dcOption = dcOptions[i]
      if (dcOption.id == dcID) {
        chosenServer = 'https://' + dcOption.host + (dcOption.port != 80 ? ':' + dcOption.port : '') + '/apiw1'
        break
      }
    }
    chosenServers[dcID] = chosenServer
  }

  return chosenServers[dcID]
}

return {
  chooseServer: chooseServer
}
})

  var publisKeysHex = [{
  modulus: 'b3454124f30f3fac04816ee8ceeeb0050c18fd13de4b20721df916ac2f5d4cfe933ea4a65d1f1442a18e55aa396fd5fe9c1470786cdfdf04545e15fde86417900bea0eed95942447fbb5069ee5c91728e7ad5ec23d211af3223ce34c247fee9be9e3522f234aeeed389e3b8ebe2f6f5b6a1404efeb6435dc1efccd6835b161fa12fbf25e624983b45d543ccf7f27b5fb15554e41f5df40cbc7b72fbf06ae0945447a49e3d8dd6f08c1bc66f5c4c1136e6c1e1049efc4adce594890ca2f6323ec8bee7e46b68fb32c7e63d453f9726ddce5521abb2c15ae0f0586be26b6331d35c85f95064cea803a5c38ba2dc1ce0b331f90e862cc336ab28bd61b74d9b94be7',exponent: '010001'
}]

但是当我输入我的电话号码时。它会不断加载“生成密钥”,并且无法继续进行

当我在电报服务器上使用默认设置时。运行正常

我需要设置其他地方吗?

我从https://github.com/zhukov/webogram/tree/gh-pages enter image description here那里获取的源代码

yuanxiao_001 回答:如何设置电报Web客户端使用我自己的服务器?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3162606.html

大家都在问