Skip to content

Commit

Permalink
refactor: refactor all
Browse files Browse the repository at this point in the history
- Refactor all files.
- Remove command /status, use reply for status.
  • Loading branch information
hlf20010508 committed Sep 20, 2023
1 parent 64c7869 commit 6645be3
Show file tree
Hide file tree
Showing 25 changed files with 793 additions and 619 deletions.
9 changes: 3 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
*
!bot.py
!onedrive.py
!auth_server.py
!ssl
!templates
!log.py
!main.py
!modules
!server
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ log
temp
session
dev.sh
test.py
test.py
.devrc
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ That's why you need to prepare a lot of things to use this bot.
## Bot Command
- `/start` to start with bot.
- `/auth` to authorize telegram and onedrive.
- `/status` to show pinned status message.
- `/clear` to clear all history except status message.
- `/links message_link range` to transfer sequential restricted content.
- `/url file_url` to upload file through url.
Expand All @@ -43,7 +42,7 @@ Example:
- Add this bot to a group or channel.
- In the group or channel, forward or upload files(or videos, photos, gifs, stickers, voices).
- If you want to transfer restricted content from a group or channel, right click the content, copy the message link, and send the link.
- Wait until the transfer completes. You can check status on pinned status message.
- Wait until the transfer completes. You can check status on replied message.
- Use `/help` for more information about other command.

## Preparation
Expand All @@ -57,8 +56,8 @@ Example:
telegram-onedrive:
...
volumes:
- /path/to/*.crt:/telegram-onedrive/ssl/server.crt
- /path/to/*.key:/telegram-onedrive/ssl/server.key
- /path/to/*.crt:/telegram-onedrive/server/ssl/server.crt
- /path/to/*.key:/telegram-onedrive/server/ssl/server.key
...
```
3. Create a Telegram bot through [BotFather](https://t.me/BotFather). Record `token` as `tg_bot_token`.
Expand Down
Loading

0 comments on commit 6645be3

Please sign in to comment.