1 | sS renderTelegramMsgWithTimeDiff(TelegramMsg m, TelegramMsg originalMessage) { |
2 | if (m == null) null; |
3 | S timeDiff = originalMessage == null ? "" |
4 | : " [T+" + iround(toSeconds(m.date-originalMessage.date)) + "]"; |
5 | ret (m.sent ? "BOT" : "USR") + timeDiff + ": " + m.text; |
6 | } |
Began life as a copy of #1017855
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017857 |
Snippet name: | renderTelegramMsgWithTimeDiff |
Eternal ID of this version: | #1017857/3 |
Text MD5: | 70cbea186a2159f8da35c3176200166f |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-18 12:56:52 |
Source code size: | 280 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 317 / 359 |
Version history: | 2 change(s) |
Referenced in: | [show references] |