Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1017857 // renderTelegramMsgWithTimeDiff

JavaX fragment (include)

sS renderTelegramMsgWithTimeDiff(TelegramMsg m, TelegramMsg originalMessage) {
  if (m == null) null;
  S timeDiff = originalMessage == null ? ""
    : " [T+" + iround(toSeconds(m.date-originalMessage.date)) + "]";
  ret (m.sent ? "BOT" : "USR") + timeDiff + ": " + m.text;
}

Author comment

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: 316 / 357
Version history: 2 change(s)
Referenced in: [show references]