mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-04 01:47:40 +08:00
优化:TG增加disable_web_page_preview节点(关闭web_page_preview防止网址的骚扰信息篇幅过大)
This commit is contained in:
parent
abb514df8c
commit
489d7b4336
@ -88,6 +88,7 @@ class TelegramUtils {
|
|||||||
bodyMap["chat_id"] = setting.chatId
|
bodyMap["chat_id"] = setting.chatId
|
||||||
bodyMap["text"] = content
|
bodyMap["text"] = content
|
||||||
bodyMap["parse_mode"] = "HTML"
|
bodyMap["parse_mode"] = "HTML"
|
||||||
|
bodyMap["disable_web_page_preview"] = "true"
|
||||||
val requestMsg: String = Gson().toJson(bodyMap)
|
val requestMsg: String = Gson().toJson(bodyMap)
|
||||||
Log.i(TAG, "requestMsg:$requestMsg")
|
Log.i(TAG, "requestMsg:$requestMsg")
|
||||||
val requestBody = RequestBody.create(MediaType.parse("application/json;charset=utf-8"), requestMsg)
|
val requestBody = RequestBody.create(MediaType.parse("application/json;charset=utf-8"), requestMsg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user