Skip to content

Commit

Permalink
add tgsend to scripts, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iw4p committed Nov 6, 2020
1 parent 9366843 commit e9b514f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
13 changes: 10 additions & 3 deletions README.md
@@ -1,5 +1,5 @@
# Telegram-cloud (A.K.A tgcloud)
[![Telegram-cloud](https://github.com/anightshade/telegram-cloud/raw/master/images/Group.png
[![Telegram-cloud](https://github.com/iw4p/telegram-cloud/raw/master/images/Group.png
)](https://pypi.org/project/telegram-cloud/)


Expand Down Expand Up @@ -131,10 +131,11 @@ Inside `telegram-cloud-config.ini`, you can find api_hash and api_id and name yo

### To do

- [x] Send message via cli (`tgsend`)
- [ ] Upload and download multiple files
- [ ] Upload and download a directory
- [ ] Add progress bar while downloading/uploading
- [x] Make compatible with windows
- [x] Add progress bar while downloading/uploading
- [x] Add progress bar while downloading/uploading

### Issues
Feel free to submit issues and enhancement requests.
Expand All @@ -155,6 +156,12 @@ NOTE: Be sure to merge the latest from "upstream" before making a pull request!

- See [Telethon](https://github.com/LonamiWebs/Telethon)

# Contributors 🤝

Special thanks to Contributors

[@anightshade](https://github.com/anightshade): For adding `tgsend` and fixing bugs!

### LICENSE
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -10,7 +10,7 @@
# This call to setup() does all the work
setup(
name="telegram-cloud",
version="1.2.4",
version="1.3.3",
description="Download and upload files via telegram up to 1.5GB, CLI",
long_description=README,
long_description_content_type="text/markdown",
Expand All @@ -31,7 +31,7 @@
"tgcloud = telegramcloud.__main__:cli",
"tglogin = telegramcloud.add_session:cli",
"tginfo = telegramcloud.scripts.tginfo:cli",
"tgsend = telegramcloud.tgsend:cli",
"tgsend = telegramcloud.scripts.tgsend:cli",
]
},
)
9 changes: 3 additions & 6 deletions telegramcloud/tgsend.py → telegramcloud/scripts/tgsend.py
Expand Up @@ -6,14 +6,11 @@
events,
utils
)
from .telegram_config import (
fetch_app_data,
directory
)
from .utils.args import (

from ..utils.args import (
tgsend_args
)
from .utils.utils import (
from ..utils.utils import (
target_username_handler,
session_retriever
)
Expand Down
2 changes: 1 addition & 1 deletion telegramcloud/utils/args.py
Expand Up @@ -27,7 +27,7 @@ def tginfo_args():
def tgsend_args():

parser = argparse.ArgumentParser(description="Send Telegram messages to users, channels and groups",
epilog="Homepage: https://github.com/anightshade/telegram-cloud")
epilog="Homepage: https://github.com/iw4p/telegram-cloud")
# Read arguments from the command line
parser.add_argument("message", help="Message to send", nargs="*")
parser.add_argument("--name", "-n", help = "Unique profile name you've set at the first run", required = True)
Expand Down

0 comments on commit e9b514f

Please sign in to comment.