mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 15:51:29 +08:00
75e05049f9
* 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
927 B
927 B
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_textwithnew_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
queryvalue:
tgutil {{[-n|--name]}} {{session_name}} {{[-u|--username]}} {{chat_id}} {{[-m|--mode]}} deleteall --text "{{query}}"