Advertisement
tinwaninja

telegram-cli command

Apr 3rd, 2018
1,439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.80 KB | None | 0 0
  1. accept_secret_chat <secret chat> Accepts secret chat. Only useful with -E option
  2. add_contact <phone> <first name> <last name> Tries to add user to contact list
  3. block_user <user> Blocks user
  4. broadcast <user>+ <text> Sends text to several users at once
  5. chat_add_user <chat> <user> [msgs-to-forward] Adds user to chat. Sends him last msgs-to-forward message from this chat. Default 100
  6. chat_del_user <chat> <user> Deletes user from chat
  7. chat_info <chat> Prints info about chat (id, members, admin, etc.)
  8. chat_set_photo <chat> <filename> Sets chat photo. Photo will be cropped to square
  9. chat_with_peer <peer> Interface option. All input will be treated as messages to this peer. Type /quit to end this mode
  10. clear Clears all data and exits. For debug.
  11. contact_list Prints contact list
  12. contact_search username Searches user by username
  13. create_group_chat <name> <user>+ Creates group chat with users
  14. create_secret_chat <user> Starts creation of secret chat
  15. del_contact <user> Deletes contact from contact list
  16. delete_msg <msg-id> Deletes message
  17. dialog_list [limit=100] [offset=0] List of last conversations
  18. export_card Prints card that can be imported by another user with import_card method
  19. export_chat_link Prints chat link that can be used to join to chat
  20. fwd <peer> <msg-id>+ Forwards message to peer. Forward to secret chats is forbidden
  21. fwd_media <peer> <msg-id> Forwards message media to peer. Forward to secret chats is forbidden. Result slightly differs from fwd
  22. get_message <msg-id> Get message by id
  23. get_self Get our user info
  24. help Prints this help
  25. history <peer> [limit] [offset] Prints messages with this peer (most recent message lower). Also marks messages as read
  26. import_card <card> Gets user by card and prints it name. You can then send messages to him as usual
  27. import_chat_link <hash> Joins to chat by link
  28. load_audio <msg-id> Downloads file to downloads dirs. Prints file name after download end
  29. load_chat_photo <chat> Downloads file to downloads dirs. Prints file name after download end
  30. load_document <msg-id> Downloads file to downloads dirs. Prints file name after download end
  31. load_document_thumb <msg-id> Downloads file to downloads dirs. Prints file name after download end
  32. load_file <msg-id> Downloads file to downloads dirs. Prints file name after download end
  33. load_file_thumb <msg-id> Downloads file to downloads dirs. Prints file name after download end
  34. load_photo <msg-id> Downloads file to downloads dirs. Prints file name after download end
  35. load_user_photo <user> Downloads file to downloads dirs. Prints file name after download end
  36. load_video <msg-id> Downloads file to downloads dirs. Prints file name after download end
  37. load_video_thumb <msg-id> Downloads file to downloads dirs. Prints file name after download end
  38. main_session Sends updates to this connection (or terminal). Useful only with listening socket
  39. mark_read <peer> Marks messages with peer as read
  40. msg <peer> <text> Sends text message to peer
  41. msg <peer> <kbd> <text> Sends text message to peer with custom kbd
  42. quit Quits immediately
  43. rename_chat <chat> <new name> Renames chat
  44. rename_contact <user> <first name> <last name> Renames contact
  45. reply <msg-id> <text> Sends text reply to message
  46. reply_audio <msg-id> <file> Sends audio to peer
  47. reply_contact <msg-id> <phone> <first-name> <last-name> Sends contact (not necessary telegram user)
  48. reply_document <msg-id> <file> Sends document to peer
  49. reply_file <msg-id> <file> Sends document to peer
  50. reply_location <msg-id> <latitude> <longitude> Sends geo location
  51. reply_photo <msg-id> <file> [caption] Sends photo to peer
  52. reply_video <msg-id> <file> Sends video to peer
  53. resolve_username username Searches user by username
  54. safe_quit Waits for all queries to end, then quits
  55. search [peer] [limit] [from] [to] [offset] pattern Search for pattern in messages from date from to date to (unixtime) in messages with peer (if peer not present, in all messages)
  56. send_audio <peer> <file> Sends audio to peer
  57. send_contact <peer> <phone> <first-name> <last-name> Sends contact (not necessary telegram user)
  58. send_document <peer> <file> Sends document to peer
  59. send_file <peer> <file> Sends document to peer
  60. send_location <peer> <latitude> <longitude> Sends geo location
  61. send_photo <peer> <file> [caption] Sends photo to peer
  62. send_text <peer> <file> Sends contents of text file as plain text message
  63. send_typing <peer> [status] Sends typing notification. You can supply a custom status (range 0-10): none, typing, cancel, record video, upload video, record audio, upload audio, upload photo, upload document, geo, choose contact.
  64. send_typing_abort <peer> Sends typing notification abort
  65. send_video <peer> <file> [caption] Sends video to peer
  66. set <param> <value> Sets value of param. Currently available: log_level, debug_verbosity, alarm, msg_num
  67. set_password <hint> Sets password
  68. set_profile_name <first-name> <last-name> Sets profile name.
  69. set_profile_photo <filename> Sets profile photo. Photo will be cropped to square
  70. set_ttl <secret chat> Sets secret chat ttl. Client itself ignores ttl
  71. set_username <name> Sets username.
  72. show_license Prints contents of GPL license
  73. start_bot <bot> <chat> <data> Adds bot to chat
  74. stats For debug purpose
  75. status_online Sets status as online
  76. status_offline Sets status as offline
  77. unblock_user <user> Unblocks user
  78. user_info <user> Prints info about user (id, last online, phone)
  79. view_audio <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  80. view_chat_photo <chat> Downloads file to downloads dirs. Then tries to open it with system default action
  81. view_document <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  82. view_document_thumb <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  83. view_file <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  84. view_file_thumb <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  85. view_photo <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  86. view_user_photo <user> Downloads file to downloads dirs. Then tries to open it with system default action
  87. view_video <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  88. view_video_thumb <msg-id> Downloads file to downloads dirs. Then tries to open it with system default action
  89. view <msg-id> Tries to view message contents
  90. visualize_key <secret chat> Prints visualization of encryption key (first 16 bytes sha1 of it in fact}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement