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
b5bf72f1
Commit
b5bf72f1
authored
Mar 21, 2014
by
vysheng
Browse files
Options
Browse Files
Download
Plain Diff
Merge github.com:vysheng/tg
parents
8d6dff61
d5cfcb52
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
constants.h
constants.h
+2
-1
telegram-cli-9999.ebuild
gentoo/telegram-cli/telegram-cli-9999.ebuild
+1
-1
mtproto-common.h
mtproto-common.h
+1
-0
queries.c
queries.c
+7
-2
No files found.
constants.h
View file @
b5bf72f1
...
...
@@ -201,7 +201,7 @@
#define CODE_photos_photo 0x20212ca8
#define CODE_upload_file 0x96a18d5
#define CODE_dc_option 0x2ec2a43c
#define CODE_config 0x2
32d5905
#define CODE_config 0x2
e54dd74
#define CODE_nearest_dc 0x8e1a1775
#define CODE_help_app_update 0x8987f311
#define CODE_help_no_app_update 0xc45a6536
...
...
@@ -379,4 +379,5 @@
#define CODE_invoke_with_layer9 0x76715a63
#define CODE_invoke_with_layer10 0x39620c41
#define CODE_invoke_with_layer11 0xa6b88fdf
#define CODE_invoke_with_layer12 0xdda60d3c
#endif
gentoo/telegram-cli/telegram-cli-9999.ebuild
View file @
b5bf72f1
...
...
@@ -27,5 +27,5 @@ src_install() {
newbin telegram telegram-cli
insinto /etc/telegram-cli/
newins tg.pub server.pub
newins tg
-server
.pub server.pub
}
mtproto-common.h
View file @
b5bf72f1
...
...
@@ -78,6 +78,7 @@
#define CODE_input_peer_notify_settings_old 0x3cf4b1be
#define CODE_peer_notify_settings_old 0xddbcd4a5
#define CODE_user_profile_photo_old 0x990d1493
#define CODE_config_old 0x232d5905
#define CODE_msg_new_detailed_info 0x809db6df
...
...
queries.c
View file @
b5bf72f1
...
...
@@ -294,6 +294,7 @@ void work_timers (void) {
}
int
max_chat_size
;
int
max_bcast_size
;
int
want_dc_num
;
int
new_dc_num
;
extern
struct
dc
*
DC_list
[];
...
...
@@ -308,7 +309,7 @@ void out_random (int n) {
int
allow_send_linux_version
;
void
do_insert_header
(
void
)
{
out_int
(
CODE_invoke_with_layer1
1
);
out_int
(
CODE_invoke_with_layer1
2
);
out_int
(
CODE_init_connection
);
out_int
(
TG_APP_ID
);
if
(
allow_send_linux_version
)
{
...
...
@@ -346,7 +347,8 @@ void fetch_dc_option (void) {
}
int
help_get_config_on_answer
(
struct
query
*
q
UU
)
{
assert
(
fetch_int
()
==
CODE_config
);
unsigned
op
=
fetch_int
();
assert
(
op
==
CODE_config
||
op
==
CODE_config_old
);
fetch_int
();
unsigned
test_mode
=
fetch_int
();
...
...
@@ -364,6 +366,9 @@ int help_get_config_on_answer (struct query *q UU) {
fetch_dc_option
();
}
max_chat_size
=
fetch_int
();
if
(
op
==
CODE_config
)
{
max_bcast_size
=
fetch_int
();
}
if
(
verbosity
>=
2
)
{
logprintf
(
"chat_size = %d
\n
"
,
max_chat_size
);
}
...
...
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