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
5d29294c
Commit
5d29294c
authored
Nov 24, 2015
by
V V
Browse files
Options
Browse Files
Download
Plain Diff
Merge
https://github.com/schroedingersZombie/tg
parents
e7035d7d
0881c5d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
interface.c
interface.c
+7
-0
loop.c
loop.c
+2
-1
tgl
tgl
+1
-1
No files found.
interface.c
View file @
5d29294c
...
...
@@ -1029,6 +1029,12 @@ void do_set_username (struct command *command, int arg_num, struct arg args[], s
tgl_do_set_username
(
TLS
,
ARG2STR
(
0
),
print_user_gw
,
ev
);
}
void
do_set_phone_number
(
struct
command
*
command
,
int
arg_num
,
struct
arg
args
[],
struct
in_ev
*
ev
)
{
assert
(
arg_num
==
1
);
if
(
ev
)
{
ev
->
refcnt
++
;
}
tgl_do_set_phone_number
(
TLS
,
ARG2STR
(
0
),
print_success_gw
,
ev
);
}
void
do_status_online
(
struct
command
*
command
,
int
arg_num
,
struct
arg
args
[],
struct
in_ev
*
ev
)
{
assert
(
!
arg_num
);
if
(
ev
)
{
ev
->
refcnt
++
;
}
...
...
@@ -1706,6 +1712,7 @@ struct command commands[MAX_COMMANDS_SIZE] = {
{
"set_profile_photo"
,
{
ca_file_name_end
,
ca_none
},
do_set_profile_photo
,
"set_profile_photo <filename>
\t
Sets profile photo. Photo will be cropped to square"
,
NULL
},
{
"set_ttl"
,
{
ca_secret_chat
,
ca_number
,
ca_none
},
do_set_ttl
,
"set_ttl <secret chat>
\t
Sets secret chat ttl. Client itself ignores ttl"
,
NULL
},
{
"set_username"
,
{
ca_string
,
ca_none
},
do_set_username
,
"set_username <name>
\t
Sets username."
,
NULL
},
{
"set_phone_number"
,
{
ca_string
,
ca_none
},
do_set_phone_number
,
"set_phone_number <phone>
\t
Changes the phone number of this account"
,
NULL
},
{
"show_license"
,
{
ca_none
},
do_show_license
,
"show_license
\t
Prints contents of GPL license"
,
NULL
},
{
"start_bot"
,
{
ca_user
,
ca_chat
,
ca_string
,
ca_none
},
do_start_bot
,
"start_bot <bot> <chat> <data>
\t
Adds bot to chat"
,
NULL
},
{
"stats"
,
{
ca_none
},
do_stats
,
"stats
\t
For debug purpose"
,
NULL
},
...
...
loop.c
View file @
5d29294c
...
...
@@ -660,7 +660,8 @@ void read_secret_chat (int fd, int v) {
&
last_in_seq_no
,
&
out_seq_no
,
&
key_fingerprint
,
TGLECF_CREATE
|
TGLECF_CREATED
TGLECF_CREATE
|
TGLECF_CREATED
,
NULL
,
0
);
}
...
...
tgl
@
b64e63eb
Subproject commit
7544eeb77ef5b23e4154e55a7e84f5dd6e91edd3
Subproject commit
b64e63ebba02bb37d3eb811eed4f6cd43d7d946d
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