shell-bot icon indicating copy to clipboard operation
shell-bot copied to clipboard

No documentation on text editor

Open MikkoWrightson opened this issue 4 years ago • 1 comments

The text editor has no documentation and it'd be really nice if it had at least a bit, it's a bit of a pain to always do everything via uploading files

MikkoWrightson avatar Dec 26 '20 11:12 MikkoWrightson

/**

  • Implements a simple select-replace file editor in Telegram.
  • It works as follows:
    1. The user invokes the editor with a non-empty file.
    1. The contents of the file are posted as a message.
    1. The user replies to that message with (part of) the text.
  • The bot will locate that substring in the file contents and track the message.
    
    1. The user edits his message.
  • The bot will then replace the original substring, save the file and edit its message.
    
  • If there are any problems with saving the file, the editor may detach.
    
  • NOTE: sync I/O is used for simplicity; be careful! (TODO) **/

andrewlytvyn avatar Feb 14 '21 07:02 andrewlytvyn