Telegram API tools for QtQml and Qml. It's based on Cutegram-Core and libqtelegram.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
database Create index for Messages.toPeerType Apr 11, 2016
debian Update debian packages Jul 4, 2016
demos Improvement on the StickersModel functions Jan 3, 2016
documents Add caption to the sendFile method May 29, 2017
files First initial 2 Feb 22, 2016
objects Exposed WebPage and Venue media messages to QML, exposed DocumentAttr… Feb 15, 2016
old import thumbnailer-qt via pkg-config. Dec 16, 2016
private Static build support Nov 22, 2017
qmake Fix build prefix problem Oct 5, 2015
.gitignore Initial commit Jun 19, 2015
.gitmodules remove submodule Jul 24, 2016
LICENSE Initial commit Jun 19, 2015
README.md Update cache May 31, 2016
plugins.qmltypes Bugfix on the getting profile images before logged in Oct 22, 2016
qmldir PowerUp Plugin Mode Aug 30, 2015
telegramabstractenginelistmodel.cpp Crash bugfix, When engine set to null Aug 17, 2016
telegramabstractenginelistmodel.h Add clearHistory functions Jun 30, 2016
telegramabstractlistmodel.cpp add isEmpty property May 24, 2016
telegramabstractlistmodel.h Bugfix Nov 4, 2017
telegramapp.cpp Add documents and Move old files to the old folder Apr 29, 2016
telegramapp.h Bugfix Nov 4, 2017
telegramauthenticate.cpp Add caption to the sendFile method May 29, 2017
telegramauthenticate.h Bugfix Nov 4, 2017
telegramauthstore.cpp Add auth method support Jun 30, 2016
telegramauthstore.h Bugfix Nov 4, 2017
telegramcache.cpp Added MAC OS Build Support🔨 Apr 18, 2018
telegramcache.h Bugfix Nov 4, 2017
telegramdialoglistmodel.cpp Added MAC OS Build Support🔨 Apr 18, 2018
telegramdialoglistmodel.h Bugfix Nov 4, 2017
telegramengine.cpp Remove all openssl from headers May 20, 2017
telegramengine.h Bugfix Nov 4, 2017
telegramenums.cpp Update Mar 9, 2016
telegramenums.h Bugfix Nov 4, 2017
telegramhost.cpp Add documents and Move old files to the old folder Apr 29, 2016
telegramhost.h Bugfix Nov 4, 2017
telegramimageelement.cpp Bugfix Jul 27, 2017
telegramimageelement.h Bugfix Nov 4, 2017
telegrammedialistmodel.cpp MediaListModel completed Jun 26, 2016
telegrammedialistmodel.h Bugfix Nov 4, 2017
telegrammemberslistmodel.cpp Bugfix Nov 4, 2017
telegrammemberslistmodel.h Bugfix Nov 4, 2017
telegrammessagefetcher.cpp Many updates for SecretChats Oct 4, 2016
telegrammessagefetcher.h Bugfix Nov 4, 2017
telegrammessagelistmodel.cpp Added MAC OS Build Support🔨 Apr 18, 2018
telegrammessagelistmodel.h Bugfix Nov 4, 2017
telegrammessagesearchmodel.cpp Upgrade to API68 Sep 4, 2017
telegrammessagesearchmodel.h Bugfix Nov 4, 2017
telegramnotificationhandler.cpp Update to use API65 Mar 31, 2017
telegramnotificationhandler.h Bugfix Nov 4, 2017
telegrampeerdetails.cpp Added MAC OS Build Support🔨 Apr 18, 2018
telegrampeerdetails.h Bugfix Nov 4, 2017
telegramprofilemanagermodel.cpp Remove all openssl from headers May 20, 2017
telegramprofilemanagermodel.h Bugfix Nov 4, 2017
telegramqml.pri Added MAC OS Build Support🔨 Apr 18, 2018
telegramqml.pro Static build support Nov 22, 2017
telegramqml_global.h Update Readme Jun 22, 2015
telegramqml_macros.h Add support for secret chats on the DialogListModel component Jul 19, 2016
telegramqml_plugin.cpp Rename to TelegramQml Jun 21, 2015
telegramqml_plugin.h Remove all openssl from headers May 20, 2017
telegramqmlinitializer.cpp Static build support Nov 22, 2017
telegramqmlinitializer.h Static build support Nov 22, 2017
telegramqmlsharedpointer.cpp Add SharedPointer Qml component to use TelegramSharedPointer features… Jul 27, 2016
telegramqmlsharedpointer.h Bugfix Nov 4, 2017
telegramshareddatamanager.cpp Many updates for SecretChats Oct 4, 2016
telegramshareddatamanager.h Bugfix Nov 4, 2017
telegramsharedpointer.cpp More Mar 29, 2016
telegramsharedpointer.h Many newfeatures and bugfixes May 18, 2016
telegramstatus.cpp Remove all openssl from headers May 20, 2017
telegramstatus.h Bugfix Nov 4, 2017
telegramstatustyping.cpp Add TopMessageListModel component to show top unreaded messages May 21, 2016
telegramstatustyping.h Bugfix Nov 4, 2017
telegramstickerscategoriesmodel.cpp Compability with API54 Aug 24, 2016
telegramstickerscategoriesmodel.h Bugfix Nov 4, 2017
telegramstickersmodel.cpp Many updates for SecretChats Oct 4, 2016
telegramstickersmodel.h Bugfix Nov 4, 2017
telegramtesttools.cpp Many newfeatures and bugfixes May 18, 2016
telegramtesttools.h Bugfix Nov 4, 2017
telegramtools.cpp Added MAC OS Build Support🔨 Apr 18, 2018
telegramtools.h Many updates for SecretChats Oct 4, 2016
telegramtopmessagesmodel.cpp Added MAC OS Build Support🔨 Apr 18, 2018
telegramtopmessagesmodel.h Bugfix Nov 4, 2017
tqbaseobject.cpp Add documents and Move old files to the old folder Apr 29, 2016
tqbaseobject.h Add documents and Move old files to the old folder Apr 29, 2016
tqmldocumentexporter.cpp Update document exporter system May 19, 2016
tqmldocumentexporter.h Bugfix Nov 4, 2017
tqmlresource.qrc First initial 2 Feb 22, 2016
tqobject.cpp First initial 2 Feb 22, 2016
tqobject.h Bugfix Nov 4, 2017

README.md

TelegramQML

Telegram API tools for QtQML and Qml, based on Cutegram-Core and libqtelegram. It's free and released under the GPLv3 license.

Developer Documents

How to Compile

Install dependencies

Install gcc, g++, openssl, git, Qt5Core, Qt5DBus, Qt5Gui, Qt5Multimedia, Qt5MultimediaQuick_p, Qt5Network, Qt5PrintSupport, Qt5Qml, Qt5Quick, Qt5Sql, Qt5Svg, and Qt5Widgets. on Ubuntu:

sudo apt-get install g++ gcc git qtbase5-dev libqt5sql5-sqlite libqt5multimediaquick-p5 libqt5multimedia5-plugins libqt5multimedia5 libqt5qml5 libqt5qml-graphicaleffects libqt5qml-quickcontrols qtdeclarative5-dev libqt5quick5 libthumbnailer-qt-dev libthumbnailer-qt1.0:armhf thumbnailer-service:armhf

Note: You may have to add this ppa first:

https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/stable-phone-overlay

on Fedora (tested on Fedora 20):

yum install qt5-qtbase qt5-qtbase-devel qt5-qtdeclarative qt5-qtquick1 qt5-qtquick1-devel kde-plasma-applicationname kde-plasma-nm qt5-qtdeclarative-devel qt5-qtdeclarative-static qt5-qtgraphicaleffects qt5-qtquickcontrols openssl-devel libappindicator-devel

For other distributions search for the corresponding packages.

Available qmake keywords

There are some available keywords, you can use it as qmake flags on build step on each project:

OPENSSL_LIB_DIR
OPENSSL_INCLUDE_PATH
LIBQTELEGRAM_LIB_DIR
LIBQTELEGRAM_INCLUDE_PATH
TELEGRAMQML_LIB_DIR
TELEGRAMQML_INCLUDE_PATH

Get libqtelegram

First, you should build and install libqtelegram.

git clone https://github.com/Aseman-Land/libqtelegram-aseman-edition.git

And:

cd libqtelegram-aseman-edition
mkdir build && cd build
qmake -r PREFIX=/usr CONFIG+=typeobjects  ..

And then start building:

make
sudo make install

Get source code from git repository

Get cutegram codes using this command:

git clone https://github.com/Aseman-Land/TelegramQML.git

Start building

Switch to source directory

cd TelegramQML
Ubuntu

First, Please create build directory.

mkdir build && cd build

To build TelegramQml in the plugin mode run:

qmake -r .. 

and to build in the library mode run:

qmake -r .. PREFIX=/usr BUILD_MODE+=lib

To make use of thumbnailer on the Ubuntu phone (which does not ship with ffmpeg), add the following to the qmake commands above:

LIBS+=-lthumbnailer DEFINES+=UBUNTU_PHONE

Then start build process:

make
make install

You can use command below after building to clean build directory on the each step.

make clean