Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
c0e52584
Commit
c0e52584
authored
Jan 31, 2014
by
Vysheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge github.com:vysheng/tg
parents
33d25bab
69a5a517
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
README.md
README.md
+8
-0
interface.c
interface.c
+1
-1
No files found.
README.md
View file @
c0e52584
...
...
@@ -76,6 +76,13 @@ By default public key is stored in the same folder named tg.pub:
./telegram -k tg.pub
Client support TAB completion and command history.
Peer refers to the name of the contact or dialog and can be accessed by TAB completion.
For user contacts peer name is Name
<underscore>
Lastname with all spaces changed to underscores.
For chats it is it's title with all spaces changed to underscores
For encrypted chats it is
<Ex
с
lamation
mark
>
<underscore>
Name
<underscore>
Lastname with all spaces changed to underscores.
If two or more peers have same name,
<sharp>
number is appended to the name. (for example A_B, A_B#1, A_B#2 and so on)
### Supported commands
...
...
@@ -84,6 +91,7 @@ Client support TAB completion and command history.
*
**msg**
\<
peer
\>
Text - sends message to this peer
*
**fwd**
\<
user
\>
\<
msg-seqno
\>
- forward message to user. You can see message numbers starting client with -N
*
**chat_with_peer**
\<
peer
\>
starts one on one chat session with this peer. /exit or /quit to end this mode.
*
**add_contact**
\<
phone-number
\>
\<
first-name
\>
\<
last-name
\>
- tries to add contact to contact-list by phone
*
**rename_contact**
\<
user
\>
\<
first-name
\>
\<
last-name
\>
- tries to rename contact. If you have another device it will be a fight
*
**mark_read**
\<
peer
\>
- mark read all received messages with peer
...
...
interface.c
View file @
c0e52584
...
...
@@ -868,7 +868,7 @@ void interpreter (char *line UU) {
"msg <peer> Text - sends message to this peer
\n
"
"contact_list - prints info about users in your contact list
\n
"
"stats - just for debugging
\n
"
"history <peer
d
> [limit] - prints history (and marks it as read). Default limit = 40
\n
"
"history <peer> [limit] - prints history (and marks it as read). Default limit = 40
\n
"
"dialog_list - prints info about your dialogs
\n
"
"send_photo <peer> <photo-file-name> - sends photo to peer
\n
"
"send_video <peer> <video-file-name> - sends video to peer
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment