Adds support for Telegram to Pidgin, Adium, Finch and other Libpurple based messengers.
Find a file
2014-11-23 00:27:44 +01:00
imgs Slightly working version 2014-11-11 20:21:14 +03:00
telegram-adium Wrap purple functions for use with libtgl types 2014-11-16 16:33:27 +01:00
tgl@d78ebeb6c6 Fixed duplicate free. Escape received messages. Updated to latest tgl 2014-11-21 19:36:48 +03:00
.gitignore small bugfixes 2014-11-17 16:27:01 +03:00
.gitmodules Updated to use subdirectory. Fixed buffer overflow in date format 2014-11-12 21:23:01 +03:00
config.h.in Updated to use subdirectory. Fixed buffer overflow in date format 2014-11-12 21:23:01 +03:00
configure Updated to use subdirectory. Fixed buffer overflow in date format 2014-11-12 21:23:01 +03:00
configure.ac Updated to use subdirectory. Fixed buffer overflow in date format 2014-11-12 21:23:01 +03:00
install-sh Updated to use subdirectory. Fixed buffer overflow in date format 2014-11-12 21:23:01 +03:00
m4_ax_check_openssl.m4 Updated to use subdirectory. Fixed buffer overflow in date format 2014-11-12 21:23:01 +03:00
m4_ax_check_zlib.m4 Updated to use subdirectory. Fixed buffer overflow in date format 2014-11-12 21:23:01 +03:00
Makefile.in Make: link libraries after including objects in linker step 2014-11-22 22:39:33 +01:00
Makefile.tgl Updated to latest version of libtgl 2014-11-18 17:45:19 +03:00
Makefile.tl-parser small bugfixes 2014-11-17 16:27:01 +03:00
mime.types Updated to latest version of libtgl 2014-11-18 17:45:19 +03:00
msglog.c Clean up README and license headers 2014-11-16 20:41:03 +01:00
msglog.h Clean up README and license headers 2014-11-16 20:41:03 +01:00
README.md Clean up README and license headers 2014-11-16 20:41:03 +01:00
telegram-base.c telegram-base: fixed bug in read_state 2014-11-22 17:32:10 +03:00
telegram-base.h Added support for incoming pictures 2014-11-21 17:44:49 +03:00
telegram-purple.c Do not add our own messages to chats to prevent them from showing up twice 2014-11-23 00:27:44 +01:00
telegram-purple.h Added support for incoming pictures 2014-11-21 17:44:49 +03:00
tg-server.pub Slightly working version 2014-11-11 20:21:14 +03:00
tgp-2prpl.c small bugfixes 2014-11-17 16:27:01 +03:00
tgp-2prpl.h small bugfixes 2014-11-17 16:27:01 +03:00
tgp-net.c Prevent infinite loop on lost network connection 2014-11-21 16:03:17 +01:00
tgp-net.h Prevent infinite loop on lost network connection 2014-11-21 16:03:17 +01:00
tgp-timers.c Fixed duplicate free. Escape received messages. Updated to latest tgl 2014-11-21 19:36:48 +03:00
tgp-timers.h Slightly working version 2014-11-11 20:21:14 +03:00

Telegram-Purple

Telegram-purple is a Libpurple plugin that adds support for the Telegram messenger. Its still in an early (pre-alpha) development stage, but already provides basic chat functionality and group chats.

This plugin is based on Telegram-cli, a full-featured terminal-based client for Telegram created by Vysheng.

Changelog

Warning, this version is mainly for development and testing and NOT for productive use. Even though it already provides basic features, you should still expect bugs and crashes when running it.

When encountering a crash or some other bugs, please report it to us, preferably together with a backtrace of the crashed application [https://developer.pidgin.im/wiki/GetABacktrace]

Version 0.4

- Use latest version of libtgl

Version 0.3.3

- multiple bugfixes

Version 0.3.2

- Add compatibility for OSX 10.8

Version 0.3.1

- Improve error handling
- Fix some installation problems

Version 0.3.0

- Provide Adium Plugin

Features

Already Implemented:

- Chats/Group-Chats
    * Send/receive messages
    * Discover buddies/chats
    * Discover buddy state and info
- Profile Pictures
    * Download and use profile pictures
- Adium Plugin

TODO:

The following features are currently planned and will probably be added in the future:

- Encrypted chats
- Picture, audio and video messages
- File transfers
- Geo-locations
- Multiple accounts on one client
- Respect libpurple proxy settings (implemented but untested)

Platform Support

We only provide an installation guide for Linux right now, even though it should be possible to compile this plugin on other platforms. If someone manages to create a working Windows or BSD-build please let us know.

Installation Instructions

Unfortunately there are no packages right now, so you need to compile it yourself:

1. Get this repository

    git clone --recursive https://github.com/majn/telegram-purple

2. Fetch all needed dependencies

This plugin depends on a working libpurple client (like Pidgin or Finch) and the following packages:

    - glib-2.0
    - libssl
    - libpurple
    - libzlib

Fedora

On Fedora you can install all dependencies with:

    sudo yum install gcc openssl-devel glib2-devel libpurple-devel

Debian

On Debian-based systems you can use:

    sudo apt-get install libssl-dev libglib2.0-dev libpurple-dev

OpenSUSE

    sudo zypper install gcc glib glib-devel libpurple libpurple-devel zlib-devel openssl libopenssl-devel

3. Compile and install

    make
    sudo make install

Usage

After succesfully completing all steps mentioned in the installation instructions, you should restart Pidgin to ensure that the plugin is loaded. When everything went well, Telegram should show up in the account manager:

Create a new Telegram account

The username is your current phone number, including your full country prefix instead of a leading '0'. For Germany, this would be '+49' for example. Telegram will verify your phone number by sending you a verification code via sms. You will be prompted for this code, once that happens.

Provide a phone number

Now you should be able to see all your contacts and chats in your buddy list and send/receive messages.

Troubleshooting

If you encounter problems running this plugin and you have updated from an older version, deleting your old user-data might be helpful. WARNING: This will require you to enter a new authentication code and delete all your secret chat keys.

To clean all your user files run:

    sudo make purge

Adium Plugin

Prebuilt Bundle

This bundle was tested to work under OSX 10.9 and 10.8. If it doesn't work on your installation please send your Adium crash log (which you can find in ~/Library/Logs/Adium 2/).

Version 0.3.2

Version 0.3.3

Build with XCode

  1. Compile the source of your current Adium version and add the created frameworks to the Adium-Telegram build path.
  2. Get zlib and libcrypto.a and provide it somewhere in your build path.
  3. Build the XCode-Project and execute the created bundle

Unicode Emojis for Pidgin

The Telegram phone applications for iOS and Android make use of standardized Unicode smileys (called Emojis). Pidgin does not display those smileys natively, but you can install a custom smiley theme like (https://github.com/stv0g/unicode-emoji) or (https://github.com/VxJasonxV/emoji-for-pidgin) and activate it under Settings > Themes > Smiley Theme.

Authors

Telegram-Purple and Telegram-Adium were written by:

- Matthias Jentsch <mtthsjntsch@gmail.com>
- Christopher Althaus <althaus.christopher@gmail.com>
- Markus Endres <endresma45241@th-nuernberg.de>

The plugin is based on Telegram-CLI, which was written by Vitaly Valtman mail@vysheng.ru and others, see (http://github.com/vysheng/tg)