mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
Added test data for messages with the different media types.
This commit is contained in:
parent
b26df3639e
commit
1c24585dd9
@ -20,4 +20,13 @@ public class TestJSON {
|
|||||||
"}";
|
"}";
|
||||||
|
|
||||||
public static String layer51message = "{\"flags\":256,\"unread\":false,\"out\":false,\"mentioned\":false,\"mediaUnread\":false,\"fromId\":2088876634,\"toId\":{\"chatId\":123851650,\"_constructor\":\"peerChat#bad0e5bb\"},\"date\":1468447000,\"message\":\"Nur mal so als Info, was wir bisher haben.\",\"_constructor\":\"message#c992e15c\",\"id\":15200}";
|
public static String layer51message = "{\"flags\":256,\"unread\":false,\"out\":false,\"mentioned\":false,\"mediaUnread\":false,\"fromId\":2088876634,\"toId\":{\"chatId\":123851650,\"_constructor\":\"peerChat#bad0e5bb\"},\"date\":1468447000,\"message\":\"Nur mal so als Info, was wir bisher haben.\",\"_constructor\":\"message#c992e15c\",\"id\":15200}";
|
||||||
|
|
||||||
|
public static String layer53mediaVenue = "{\"flags\":770,\"out\":true,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":158965173,\"toId\":{\"userId\":251361127,\"_constructor\":\"peerUser#9db1bc6d\"},\"date\":1473873182,\"message\":\"\",\"media\":{\"geo\":{\"_long\":7.560121423276862,\"lat\":51.455274228064205,\"_constructor\":\"geoPoint#2049d70c\"},\"title\":\"Subways\",\"address\":\"Schwerte\",\"provider\":\"foursquare\",\"venueId\":\"52e2656111d2dba707a8aabcd\",\"_constructor\":\"messageMediaVenue#7912b71f\"},\"_constructor\":\"message#c09be45f\",\"id\":22326}";
|
||||||
|
public static String layer53mediaContact = "{\"flags\":770,\"out\":true,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":144567653,\"toId\":{\"userId\":12344432,\"_constructor\":\"peerUser#9db1bc6d\"},\"date\":1467631018,\"message\":\"\",\"media\":{\"phoneNumber\":\"+49123455567\",\"firstName\":\"Some-Guy\",\"lastName\":\"\",\"userId\":0,\"_constructor\":\"messageMediaContact#5e7d2f39\"},\"_constructor\":\"message#c09be45f\",\"id\":13783}";
|
||||||
|
public static String layer53mediaDocument = "{\"flags\":2816,\"out\":false,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":99987887890,\"toId\":{\"userId\":1232313,\"_constructor\":\"peerUser#9db1bc6d\"},\"viaBotId\":97987912,\"date\":1487318546,\"message\":\"\",\"media\":{\"document\":{\"accessHash\":123123123123123123,\"date\":1467626743,\"mimeType\":\"video/mp4\",\"size\":137797,\"thumb\":{\"location\":{\"dcId\":4,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":123123123123,\"localId\":12331,\"secret\":-31312312312312144},\"w\":90,\"h\":67,\"size\":2606,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"s\"},\"dcId\":4,\"attributes\":[{\"duration\":4,\"w\":480,\"h\":360,\"_constructor\":\"documentAttributeVideo#5910cccb\"},{\"fileName\":\"giphy.mp4\",\"_constructor\":\"documentAttributeFilename#15590068\"},{\"_constructor\":\"documentAttributeAnimated#11b58939\"}],\"_constructor\":\"document#f9a39f4f\",\"id\":1231231232331231321323},\"caption\":\"\",\"_constructor\":\"messageMediaDocument#f3e02ea8\"},\"_constructor\":\"message#c09be45f\",\"id\":39540}";
|
||||||
|
public static String layer53mediaGeo = "{\"flags\":768,\"out\":false,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":123414122427,\"toId\":{\"userId\":123123123,\"_constructor\":\"peerUser#9db1bc6d\"},\"date\":1487261241,\"message\":\"\",\"media\":{\"geo\":{\"_long\":7.462550916934414,\"lat\":51.51039066891987,\"_constructor\":\"geoPoint#2049d70c\"},\"_constructor\":\"messageMediaGeo#56e0d474\"},\"_constructor\":\"message#c09be45f\",\"id\":39515}";
|
||||||
|
public static String layer53mediaPhoto = "{\"flags\":768,\"out\":false,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":31231212327,\"toId\":{\"userId\":123412412323,\"_constructor\":\"peerUser#9db1bc6d\"},\"date\":1487860967,\"message\":\"\",\"media\":{\"photo\":{\"accessHash\":141241241235422,\"date\":1487860966,\"sizes\":[{\"location\":{\"dcId\":2,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":123123522,\"localId\":52452,\"secret\":-24524524524524},\"w\":51,\"h\":90,\"_constructor\":\"photoCachedSize#e9a734fa\",\"type\":\"s\"},{\"location\":{\"dcId\":2,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":245245245,\"localId\":24523513,\"secret\":-5231435452523},\"w\":180,\"h\":320,\"size\":10917,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"m\"},{\"location\":{\"dcId\":2,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":2352351351,\"localId\":253523,\"secret\":26514225},\"w\":450,\"h\":800,\"size\":41330,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"x\"},{\"location\":{\"dcId\":2,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":23415426,\"localId\":3242235,\"secret\":23452452434},\"w\":720,\"h\":1280,\"size\":65231,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"y\"}],\"_constructor\":\"photo#cded42fe\",\"id\":234252351342},\"caption\":\"\",\"_constructor\":\"messageMediaPhoto#3d8ce53d\"},\"_constructor\":\"message#c09be45f\",\"id\":40097}";
|
||||||
|
public static String layer53mediaSticker = "{\"flags\":768,\"out\":false,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":12312341227,\"toId\":{\"userId\":1241245425,\"_constructor\":\"peerUser#9db1bc6d\"},\"date\":1487857034,\"message\":\"\",\"media\":{\"document\":{\"accessHash\":-5626093178741688070,\"date\":1480857517,\"mimeType\":\"image/webp\",\"size\":54338,\"thumb\":{\"location\":{\"dcId\":2,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":226626285,\"localId\":42675,\"secret\":-7837458769417811068},\"w\":128,\"h\":128,\"size\":7336,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"s\"},\"dcId\":2,\"attributes\":[{\"w\":512,\"h\":512,\"_constructor\":\"documentAttributeImageSize#6c37c15c\"},{\"alt\":\"🎉\",\"stickerset\":{\"id\":867500685606780934,\"accessHash\":1990111411266382191,\"_constructor\":\"inputStickerSetID#9de7a269\"},\"_constructor\":\"documentAttributeSticker#3a556302\"},{\"fileName\":\"sticker.webp\",\"_constructor\":\"documentAttributeFilename#15590068\"}],\"_constructor\":\"document#f9a39f4f\",\"id\":867500685606781679},\"caption\":\"\",\"_constructor\":\"messageMediaDocument#f3e02ea8\"},\"_constructor\":\"message#c09be45f\",\"id\":40085}";
|
||||||
|
public static String layer53mediaUnsupported = "{\"flags\":768,\"out\":false,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":11423643635247,\"toId\":{\"userId\":5264253423,\"_constructor\":\"peerUser#9db1bc6d\"},\"date\":1478196464,\"message\":\"\",\"media\":{\"_constructor\":\"messageMediaUnsupported#9f84f49e\"},\"_constructor\":\"message#c09be45f\",\"id\":27751}";
|
||||||
|
public static String layer35mediaWebpage = "{\"flags\":898,\"out\":true,\"mentioned\":false,\"mediaUnread\":false,\"silent\":false,\"post\":false,\"fromId\":14134325463453,\"toId\":{\"userId\":235246253,\"_constructor\":\"peerUser#9db1bc6d\"},\"date\":1487774218,\"message\":\"Zu Hause nutze ich den hier: http://www.thingiverse.com/thing:922740\",\"media\":{\"webpage\":{\"flags\":31,\"url\":\"https://www.thingiverse.com/thing:922740\",\"displayUrl\":\"thingiverse.com/thing:922740\",\"type\":\"article\",\"siteName\":\"Thingiverse\",\"title\":\"Raspberry Pi 3, Pi 2, and Model B+ case with VESA mounts and more by 0110-M-P\",\"description\":\"Compatibility (PLEASE READ INSTRUCTIONS AT BOTTOM)\nWorks with the following Raspberry Pi Models:\n\nRaspberry Pi 3 (UPDATED 9/10/16)\nRaspberry Pi 2\nRaspberry Pi Model B+\n\nDetails\nThis Raspberry Pi case inspired by my old Raspberry Pi Model B case. Like my other design this new Picase features: \n\nAccess slot for Pi camera \nScrew together design \nScrew mounting of Raspberry Pi to case using holes in PCB \nBuilt in 75mm VESA mounting tabs \nRotary engine (reuleaux triangle) vent design \nHigh resolution STLmesh \n\nAlso, as always, STEP files of the two halves of the case are attached as well for those who would like to tweak the design for their own use. \nIf anyone finds any problems (dimensionally or otherwise) post them up so I can getthe model fixed.\nChange Log\n10/29/16\n\nUploaded Raspberry Pi 3 standard bottom STEP file.\n\n9/10/16\n\nAdded new models for Raspberry Pi 3 (both standard and 100mm VESA versions) that will allow for easier removal of SD card.\n\n10/8/15\n\nAdded base design for mounting directly to..\",\"photo\":{\"accessHash\":-72565530569321830,\"date\":1479067529,\"sizes\":[{\"location\":{\"dcId\":4,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":425808801,\"localId\":130530,\"secret\":-2387402576445814225},\"w\":90,\"h\":68,\"size\":1227,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"s\"},{\"location\":{\"dcId\":4,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":425808801,\"localId\":130529,\"secret\":-3653085158723293279},\"w\":320,\"h\":241,\"size\":13570,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"m\"},{\"location\":{\"dcId\":4,\"_constructor\":\"fileLocation#53d69076\",\"volumeId\":425808801,\"localId\":130528,\"secret\":2134483174166669917},\"w\":628,\"h\":472,\"size\":40299,\"_constructor\":\"photoSize#77bfb61b\",\"type\":\"x\"}],\"_constructor\":\"photo#cded42fe\",\"id\":532580227242863589},\"_constructor\":\"webPage#ca820ed7\",\"id\":8287841561808928777},\"_constructor\":\"messageMediaWebPage#a32dd600\"},\"entities\":[{\"_constructor\":\"messageEntityUrl#6ed02538\",\"offset\":29,\"length\":39}],\"_constructor\":\"message#c09be45f\",\"id\":39966}";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user