当电报安全性更新不成功时,我将共享主机用于电报bot 1-im ceate Web应用程序并添加apiController白色名称webhook控制器 这段代码
[HttpPost]
public async Task<IHttpActionResult> Post(Update update)
{
System.Net.ServicePointManager.Expect100Continue = true;
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
TelegramBotClient Api = new TelegramBotClient("Tooken");
var message = update.Message;
var me = await Api.GetMeAsync();
if (message.Text == "/start")
{
await Api.SendTextMessageAsync(message.Chat.Id, "hello");
}
await Api.SendTextMessageAsync(message.Chat.Id, message.Text);
return Ok();
}
2-setwebhook在我的域上 在我的doamin中活跃的3-tls在此链接中查看 https://www.ssllabs.com/ssltest/analyze.html?d=seolive.ir 但 在摘要部分 它说 该服务器支持TLS 1.0和TLS 1.1。成绩不得超过B
但是在“配置”部分中,TLS 1.2变为绿色,并且被称为活动状态。 现在终于为此域启用了TLS 1.2吗?
4-webconfig将.netframework更改为4.7.2
但没有答案电报机器人 请帮助mi。