diff --git a/pages/common/tgcloud.md b/pages/common/tgcloud.md new file mode 100644 index 0000000000..0db8404698 --- /dev/null +++ b/pages/common/tgcloud.md @@ -0,0 +1,13 @@ +# tgcloud + +> Manage a Telegram account. +> See also: `tgsend`, `tginfo`, `tgutil`. +> More information: . + +- 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}}` diff --git a/pages/common/tginfo.md b/pages/common/tginfo.md new file mode 100644 index 0000000000..1f6802af9a --- /dev/null +++ b/pages/common/tginfo.md @@ -0,0 +1,13 @@ +# tginfo + +> Manage a Telegram account. +> See also: `tgcloud`, `tgsend`, `tgutil`. +> More information: . + +- 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}}` diff --git a/pages/common/tgsend.md b/pages/common/tgsend.md new file mode 100644 index 0000000000..270a12d354 --- /dev/null +++ b/pages/common/tgsend.md @@ -0,0 +1,13 @@ +# tgsend + +> Manage a Telegram account. +> See also: `tgcloud`, `tginfo`, `tgutil`. +> More information: . + +- 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}}"` diff --git a/pages/common/tgutil.md b/pages/common/tgutil.md new file mode 100644 index 0000000000..66c1a200d2 --- /dev/null +++ b/pages/common/tgutil.md @@ -0,0 +1,21 @@ +# tgutil + +> Manage a Telegram account. +> See also: `tgcloud`, `tgsend`, `tginfo`. +> More information: . + +- 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}}"`