优化:TG增加disable_web_page_preview节点(关闭web_page_preview防止网址的骚扰信息篇幅过大)

This commit is contained in:
pppscn 2022-06-08 09:27:46 +08:00
parent abb514df8c
commit 489d7b4336

View File

@ -88,6 +88,7 @@ class TelegramUtils {
bodyMap["chat_id"] = setting.chatId
bodyMap["text"] = content
bodyMap["parse_mode"] = "HTML"
bodyMap["disable_web_page_preview"] = "true"
val requestMsg: String = Gson().toJson(bodyMap)
Log.i(TAG, "requestMsg:$requestMsg")
val requestBody = RequestBody.create(MediaType.parse("application/json;charset=utf-8"), requestMsg)