all repos — tg2md @ c1aea08b1c64a79f724a04edc55d8d9d8e28e263

converter from telegram json to jekyll md

add testcase for utf-8 strings
la-ninpre leobrekalini@gmail.com
Mon, 12 Jul 2021 13:21:46 +0300
commit

c1aea08b1c64a79f724a04edc55d8d9d8e28e263

parent

43c88a3cf8f007dd9969ea20b0e5bdabec636ec6

1 files changed, 22 insertions(+), 14 deletions(-)

jump to
M tests/result.jsontests/result.json

@@ -1,14 +1,14 @@

{ "name": "test", "type": "private_channel", - "id": 9882011936, + "id": 1292077344, "messages": [ { "id": 1, "type": "service", "date": "2020-11-12T12:53:52", "actor": "test", - "actor_id": 9882011936, + "actor_id": "channel1292077344", "action": "create_channel", "title": "test", "text": ""

@@ -18,7 +18,7 @@ "id": 2,

"type": "message", "date": "2020-11-12T12:54:07", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": "test text post" }, {

@@ -26,7 +26,7 @@ "id": 3,

"type": "message", "date": "2020-11-12T12:57:31", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "photo": "photos/photo_1@12-11-2020_12-57-31.jpg", "width": 801, "height": 526,

@@ -37,7 +37,7 @@ "id": 4,

"type": "message", "date": "2020-11-12T12:57:40", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "photo": "photos/photo_1@12-11-2020_12-57-31.jpg", "width": 801, "height": 526,

@@ -49,7 +49,7 @@ "type": "message",

"date": "2020-11-12T12:58:18", "edited": "2020-11-12T13:03:00", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": [ { "type": "italic",

@@ -79,7 +79,7 @@ "id": 7,

"type": "message", "date": "2020-11-12T13:01:05", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "file": "voice_messages/audio_1@12-11-2020_13-01-05.ogg", "media_type": "voice_message", "mime_type": "audio/ogg",

@@ -91,7 +91,7 @@ "id": 8,

"type": "message", "date": "2020-11-12T13:02:35", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "file": "files/test-sound.ogg", "media_type": "audio_file", "mime_type": "audio/x-vorbis+ogg",

@@ -103,7 +103,7 @@ "id": 9,

"type": "message", "date": "2020-11-12T13:43:23", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": [ { "type": "italic",

@@ -122,7 +122,7 @@ "type": "message",

"date": "2020-11-12T14:11:35", "edited": "2020-11-12T14:18:17", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": [ { "type": "bold",

@@ -146,7 +146,7 @@ "id": 11,

"type": "message", "date": "2020-11-12T14:34:47", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": [ { "type": "bold",

@@ -160,7 +160,7 @@ "type": "message",

"date": "2020-11-12T14:45:43", "edited": "2020-11-12T14:45:55", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": [ { "type": "code",

@@ -179,7 +179,7 @@ "type": "message",

"date": "2020-11-12T14:48:48", "edited": "2020-11-12T14:49:39", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": [ { "type": "text_link",

@@ -202,13 +202,21 @@ "id": 15,

"type": "message", "date": "2020-11-12T15:05:32", "from": "test", - "from_id": 9882011936, + "from_id": "channel1292077344", "text": [ { "type": "italic", "text": "bold italic" } ] + }, + { + "id": 21, + "type": "message", + "date": "2021-07-12T13:17:15", + "from": "test", + "from_id": "channel1292077344", + "text": "тестирование utf-8." } ] }