summaryrefslogtreecommitdiff
path: root/tdutils.c
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2022-10-22 14:19:32 -0700
committerTrumeet <yuuta@yuuta.moe>2022-10-22 14:19:32 -0700
commit57bd18ef88e48c18abf156b2635675df56c4a67e (patch)
tree799051ed279430013833078b976ec1eb2d9c376b /tdutils.c
parentc03e43f9bc38133f88fb93078e634b105e4a0600 (diff)
downloadksyxbot-57bd18ef88e48c18abf156b2635675df56c4a67e.tar
ksyxbot-57bd18ef88e48c18abf156b2635675df56c4a67e.tar.gz
ksyxbot-57bd18ef88e48c18abf156b2635675df56c4a67e.tar.bz2
ksyxbot-57bd18ef88e48c18abf156b2635675df56c4a67e.zip
Use version number as TDLib config version
Diffstat (limited to 'tdutils.c')
-rw-r--r--tdutils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdutils.c b/tdutils.c
index 0df00c3..f9a5502 100644
--- a/tdutils.c
+++ b/tdutils.c
@@ -1,6 +1,7 @@
#include "tdutils.h"
#include "botd.h"
#include "log.h"
+#include "config.h"
#include <stdio.h>
#include <td/telegram/td_c_client.h>
@@ -252,7 +253,7 @@ static int handle_auth(const struct TdUpdateAuthorizationState *update) {
"en",
"Desktop",
"0.0",
- "Channel Helper Bot 1.0",
+ "ksyxbotd "VER_MAJOR"."VER_MINOR,
false,
true
)),