tgcloud, tginfo, tgsend, tgutil: add page (#18662)

* tgcloud: add page

* tginfo: add page

* tgsend: add page

* tgutil: add page

* tgcloud: add page

* tginfo: add page

* tgsend: add page

* tgutil: add page

* tgcloud: add page

* tginfo: add page

* tgutil: add page

* tgsend: add page

* tgcloud: add page

* tginfo: add page

* tgsend: add page

* tgutil: add page
This commit is contained in:
Praveen Kumar
2025-10-19 03:47:01 +05:30
committed by GitHub
parent 5e64ebc0a4
commit 75e05049f9
4 changed files with 60 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# tgcloud
> Manage a Telegram account.
> See also: `tgsend`, `tginfo`, `tgutil`.
> More information: <https://pypi.org/project/telegram-cloud/>.
- Upload a file to a chat with a caption:
`tgcloud {{[-m|--mode]}} upload {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-p|--path]}} {{path_of_the_file}} {{[-c|--caption]}} {{caption}}`
- Download a file from a chat and store it in `path/to/store` with a caption:
`tgcloud {{[-m|--mode]}} download {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-p|--path]}} {{path/to/store}} {{[-c|--caption]}} {{caption}}`
+13
View File
@@ -0,0 +1,13 @@
# tginfo
> Manage a Telegram account.
> See also: `tgcloud`, `tgsend`, `tgutil`.
> More information: <https://pypi.org/project/telegram-cloud/>.
- Search for all files inside a Telegram conversation based on their filename or caption:
`tginfo {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-s|--search]}} "{{query}}"`
- Get info for all media inside a Telegram chat:
`tginfo {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}}`
+13
View File
@@ -0,0 +1,13 @@
# tgsend
> Manage a Telegram account.
> See also: `tgcloud`, `tginfo`, `tgutil`.
> More information: <https://pypi.org/project/telegram-cloud/>.
- Send a message to a chat:
`tgsend {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} "{{message}}"`
- Send a message to chat with silent notification:
`tgsend {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} --silent "{{message}}"`
+21
View File
@@ -0,0 +1,21 @@
# tgutil
> Manage a Telegram account.
> See also: `tgcloud`, `tgsend`, `tginfo`.
> More information: <https://pypi.org/project/telegram-cloud/>.
- Edit the last text message on a chat with new text:
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} edit --text "{{current_text}}" --newtext "{{new_text}}"`
- Edit all text messages that contain `current_text` with `new_text`:
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} editall --text "{{current_text}}" --newtext "{{new_text}}"`
- Delete the last text message on a chat with search value:
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} delete --text "{{current_text}}"`
- Delete all messages containing the `query` value:
`tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} deleteall --text "{{query}}"`