[英]Creat and send SVG by telegram bot
我需要創建座位圖並通過電報bot(node.js)發送給我,我的JSON具有這樣的坐標
"hallid": "200",
"hallName": "Hall 3",
"width": 561,
"height": 499,
"widthScreen": 1024,
"heightScreen": 768,
"horizontalRatio": 2,
"verticalRatio": 2,
"seats": [
{
"x": 144,
"y": 288,
"width": 21,
"height": 57,
"id": "D00001",
"row": "D",
"seat": "1",
"idSector": "000000308",
"idTypeOfSeat": "001"
},
{
"x": 320,
"y": 288,
"width": 21,
"height": 57,
"id": "D00007",
"row": "D",
"seat": "7",
"idSector": "000000308",
"idTypeOfSeat": "001"
}...
]
},
我已經嘗試像在前端那樣進行操作,但這是行不通的。
Telegram客戶端無法顯示SVG圖像。 如果您希望圖像在客戶端中可見,請將其轉換為受支持的格式:JPEG,PNG或WebM。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.