修复错误警告

This commit is contained in:
xintaofei
2026-03-31 13:11:08 +08:00
parent 007b52c183
commit f2a53acc9d
8 changed files with 27 additions and 29 deletions

View File

@@ -50,7 +50,7 @@ impl TelegramBackend {
let resp = self
.client
.post(&self.api_url("sendMessage"))
.post(self.api_url("sendMessage"))
.json(&body)
.send()
.await
@@ -94,7 +94,7 @@ impl ChatChannelBackend for TelegramBackend {
// Verify bot token by calling getMe
let resp = self
.client
.get(&self.api_url("getMe"))
.get(self.api_url("getMe"))
.send()
.await
.map_err(|e| ChatChannelError::ConnectionFailed(e.to_string()))?;
@@ -217,7 +217,7 @@ impl ChatChannelBackend for TelegramBackend {
async fn test_connection(&self) -> Result<(), ChatChannelError> {
let resp = self
.client
.get(&self.api_url("getMe"))
.get(self.api_url("getMe"))
.send()
.await
.map_err(|e| ChatChannelError::ConnectionFailed(e.to_string()))?;