mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 06:02:14 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/tgutil
Normal file
26
tldr/tgutil
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}"`
|
||||
Reference in New Issue
Block a user