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

10
LINES

< > BotCompany Repo | #1002562 // getDialog

JavaX fragment (include)

1  
// get current dialog
2  
static L<Map> getDialog() {
3  
  ret getDialog(getDialogID());
4  
}
5  
6  
// get a specific dialog by id
7  
static L<Map> getDialog(S dialogID) {
8  
  L<Map> history = cast get(getMainBot(), "history");
9  
  ret filterByField(history, "dialogID", dialogID);
10  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002562
Snippet name: getDialog
Eternal ID of this version: #1002562/1
Text MD5: c08345d7ed342df1505cab6af25bd887
Author: stefan
Category: eleu
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-02 01:36:34
Source code size: 270 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 623 / 592
Referenced in: [show references]