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

8
LINES

< > BotCompany Repo | #1030331 // gazelle_editPost

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4366L/29K).

sS gazelle_editPost(GazelleBotCred cred, long postID, S text, S type, O... _) {
  Map result = cast postJSONPage(cred.server + "bot/editPost",
    paramsPlus(_, +postID, _user := cred._user, _botToken := cred._botToken,
    +text, +type, botInfo := cred.botInfo));
  S error = cast result.get("error");
  if (nempty(error)) fail(error);
  ret (S) result.get("status");
}

Author comment

Began life as a copy of #1029999

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030331
Snippet name: gazelle_editPost
Eternal ID of this version: #1030331/3
Text MD5: 432bf196d383a190537fe755cda00cd1
Transpilation MD5: 6644c29effc1bcd75aeacb033636b701
Author: stefan
Category: javax / gazelle.rocks
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-15 21:47:44
Source code size: 377 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 181 / 263
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)