Commit graph

64 commits

Author SHA1 Message Date
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
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
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
8b4a1c8d10 Use input values from account settings to authentication to data center 2014-05-23 11:36:54 +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
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