Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No documentation on text editor #40

Open
MikkoWrightson opened this issue Dec 26, 2020 · 1 comment
Open

No documentation on text editor #40

MikkoWrightson opened this issue Dec 26, 2020 · 1 comment

Comments

@MikkoWrightson
Copy link

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

@andrewlytvyn
Copy link

/**

  • 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)
    **/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants