Commit graph

514 commits

Author SHA1 Message Date
mjentsch
32799a9086 Move binlog globals into a structure 2014-08-22 17:05:29 +02:00
mjentsch
331d631659 Ignore gdb files 2014-08-22 16:43:45 +02:00
mjentsch
188f890df5 Ignore app-hash 2014-08-08 08:46:39 +02:00
mjentsch
1170ae5710 Implement state machine for dc discovery and login. 2014-08-08 08:45:58 +02:00
mjentsch
f1a2738783 remove redundant functions from binlog 2014-08-08 08:44:56 +02:00
mjentsch
9e5b4ca5ec Refactor - Intermediate Commit 3 2014-08-06 19:45:46 +02:00
mjentsch
8a2c043db4 Refactor - Intermediate Commit 2 2014-07-29 15:36:59 +02:00
mjentsch
ed7aa7de5b Refactor Intermediate State 1 2014-07-29 15:36:59 +02:00
mjentsch
67c5a5e712 Ignore ycm-autocompletion files 2014-07-29 15:31:37 +02:00
Matthias Jentsch
9b7f273579 README.md edited online with Bitbucket 2014-07-26 09:11:47 +00:00
mjentsch
7fad1403ec Fetch chats and refactor libtelegram api 2014-07-11 19:57:32 +02:00
mjentsch
f78adc8b96 Support sending messages 2014-07-11 02:19:05 +02:00
mjentsch
43a5a80c48 Set up stub for telegram library 2014-07-11 01:13:01 +02:00
mjentsch
44e9163b66 Remove useless comments 2014-07-11 01:06:37 +02:00
mjentsch
6a439a5d55 Move everything into one Makefile
Avoid having to execute two different make commands to properly build the plugin, when there are changes in the telegram-cli files.
2014-07-08 21:17:50 +02:00
mjentsch
2099d9fbc3 Rename printname to alias 2014-06-27 09:37:35 +02:00
mjentsch
f28d89c9c6 Replace tabs with 4 spaces 2014-06-27 09:35:47 +02:00
mjentsch
6325bd108d Listen to changed users and add new chats to the current sessions 2014-06-22 23:39:05 +02:00
mjentsch
0945a3ca11 Add event handler functionality to tg-cli 2014-06-22 23:38:06 +02:00
mjentsch
d712b7e17f Add possibillity to listen to created users, chats and groups with event handlers and add some ability to exchange output functions with own callbacks 2014-06-22 23:36:52 +02:00
mjentsch
dbf509d59e Log some terminal messages to libpurple log 2014-06-22 23:33:57 +02:00
mjentsch
75e1abe520 Remove useless functions 2014-06-21 01:51:26 +02:00
mjentsch
a005c015cd Implement phone number registration
When the current phone number is not registered with the telegram network, ask for first and last name and proceed with the regular sms-code authentication scheme.
2014-06-15 19:58:49 +02:00
mjentsch
62090b3ca0 Implement login and authentication mechanism and fix the logging mechanism
Use purple debugging functions by formatting the string beforehand and then passing the readily formatted string, instead of doing it with va_list. Log into the telegram network using the provided SMS code and hash or request a new one, in case one of those isn't provided. Store and load the state using the file config/auth, to be able to restore previous logins.
2014-06-15 13:38:38 +02:00
mjentsch
90f7b39e11 Fix log format arguments
Remove the misuse of va_list and emulate behavior of purple debugging functions in our own code, since a va_list cannot be passed to purple_debug_info,
2014-06-15 03:22:39 +02:00
mjentsch
93f4bd25ae Add an externally controllable message-log and redirect tg-cli logging to the libpurple logging mechanism 2014-06-09 14:22:06 +02:00
Christopher Althaus
58244abb2d changed login 2014-05-30 10:05:48 +02:00
mjentsch
855c461f35 Debugging changes 2014-05-23 13:42:05 +02:00
mjentsch
cc2a19d6ea Merge branch master of bitbucket.org:telegrampurple/telegram-purple 2014-05-23 11:37:59 +02:00
mjentsch
8b4a1c8d10 Use input values from account settings to authentication to data center 2014-05-23 11:36:54 +02:00
Christopher Althaus
70682ef8b5 Git Kommandos hinzugefügt 2014-05-23 09:49:00 +02:00
mjentsch
377c809ba7 Add options for user verification, refactor header file-name to include functions into the purple-plugin and copy server.pub into the /etc/telegram directory when installing. 2014-05-11 22:18:21 +02:00
mjentsch
da57c79053 Update readme for new build process 2014-05-10 19:58:52 +02:00
mjentsch
02296e3774 Link header files of the telegram cli tool 2014-05-10 19:56:29 +02:00
mjentsch
e0c65b1b8d Move plugin into separate directory 2014-05-10 15:37:43 +02:00
mjentsch
0bc969918a Add files from telegram-purple-skeleton 2014-05-08 13:17:11 +02:00
vysheng
c8f8dd0309 Merge pull request #158 from koter84/master
use the right .pub file
2014-03-21 20:12:54 +03:00
Dennis Koot
3fe6641dbe use the right .pub file since commit #ff14a08d53ac9e223ffada8a41e69ebb673aa7d7 changed tg.pub to tg-server.pub 2014-03-21 16:34:06 +01:00
vysheng
0ca3a4dc48 fixed login 2014-03-21 15:33:06 +04:00
vysheng
183c09877d Merge github.com:vysheng/tg 2014-03-21 01:03:42 +04:00
vysheng
aa68c2c6ae Fixed sentCode parse in 12 layer 2014-03-21 01:03:23 +04:00
vysheng
1722bbc3f2 added layer 12 support 2014-03-20 19:33:08 +04:00
vysheng
1c09ffc626 Merge pull request #150 from mindrunner/master
telegram-cli gentoo ebuild pubkey fix
2014-03-16 23:46:24 +03:00
vysheng
4b8fe89b79 Merge github.com:vysheng/tg 2014-03-17 00:45:46 +04:00
vysheng
2fd40ea3e7 structures.h: fixed foolish bug in structures defenition, leading to SIGSEGV 2014-03-17 00:45:10 +04:00
mindrunner
a50c7c37d2 telegram-cli gentoo ebuild pubkey fix 2014-03-16 13:44:44 +01:00
vysheng
bfb31f383a Merge pull request #117 from mk-pmb/pubkey_clarify
Enhance naming to show that the pubkey is the server's.
2014-03-12 15:49:04 +03:00
mk-pmb
eb7ce437af Enhance naming to show that the pubkey is the server's.
While I'm at it, also label the magic constants for prng_seed
to avoid confusion with srand(0).
2014-03-11 15:10:19 +01:00
vysheng
d8d1d42327 deleted unused code 2014-03-07 23:41:59 +04:00
vysheng
2d7fbe769e added support for update_dc 2014-03-07 23:15:57 +04:00