<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: K. C. V. Abeysinghe</title>
    <description>The latest articles on DEV Community by K. C. V. Abeysinghe (@kcvabeysinghe).</description>
    <link>https://dev.to/kcvabeysinghe</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3882969%2F5ed4c2a5-4c8f-40a2-a810-c75a9bc155cc.jpeg</url>
      <title>DEV Community: K. C. V. Abeysinghe</title>
      <link>https://dev.to/kcvabeysinghe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kcvabeysinghe"/>
    <language>en</language>
    <item>
      <title>How to Build an Android Telegram Client Without Touching C++ (A Kotlin-First Approach)</title>
      <dc:creator>K. C. V. Abeysinghe</dc:creator>
      <pubDate>Thu, 16 Apr 2026 18:06:38 +0000</pubDate>
      <link>https://dev.to/kcvabeysinghe/how-to-build-an-android-telegram-client-without-touching-c-a-kotlin-first-approach-1j94</link>
      <guid>https://dev.to/kcvabeysinghe/how-to-build-an-android-telegram-client-without-touching-c-a-kotlin-first-approach-1j94</guid>
      <description>&lt;p&gt;Setting up TDLib for Android usually means spending hours configuring CMake, the NDK, and complex JNI bindings. &lt;/p&gt;

&lt;p&gt;To solve this, I built &lt;strong&gt;&lt;a href="https://github.com/kcvabeysinghe/EasyTDLib" rel="noopener noreferrer"&gt;EasyTDLib&lt;/a&gt;&lt;/strong&gt;. It is a ready-to-use Android Studio boilerplate that completely bypasses the C++ setup using pre-compiled binaries. &lt;/p&gt;

&lt;p&gt;It handles the complex engine configuration so you can start building your app's UI immediately.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is included:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero C++ Setup:&lt;/strong&gt; No NDK or CMake required. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complete Login Flow:&lt;/strong&gt; Automatically handles Phone -&amp;gt; OTP Code -&amp;gt; 2FA Password -&amp;gt; Ready states.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modern Stack:&lt;/strong&gt; The UI is built with &lt;strong&gt;Jetpack Compose&lt;/strong&gt; (Material 3).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clean Architecture:&lt;/strong&gt; Uses &lt;strong&gt;Kotlin Coroutines&lt;/strong&gt; and &lt;code&gt;StateFlow&lt;/code&gt; to manage the TDLib engine.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chat List:&lt;/strong&gt; Includes a basic chat list with avatar image downloading (via Coil).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How to use it in 3 steps:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;1. Clone the repository:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone &lt;span class="o"&gt;[&lt;/span&gt;https://github.com/kcvabeysinghe/EasyTDLib.git]&lt;span class="o"&gt;(&lt;/span&gt;https://github.com/kcvabeysinghe/EasyTDLib.git&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Add your API Keys:&lt;/strong&gt; Get your &lt;code&gt;api_id&lt;/code&gt; and &lt;code&gt;api_hash&lt;/code&gt; from &lt;a href="https://my.telegram.org" rel="noopener noreferrer"&gt;my.telegram.org&lt;/a&gt; and replace the placeholders in &lt;code&gt;TelegramManager.kt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Run the app:&lt;/strong&gt; Sync Gradle and press Run in Android Studio. That's it.&lt;/p&gt;




&lt;h3&gt;
  
  
  Get the code
&lt;/h3&gt;

&lt;p&gt;You can view the full source code and documentation here:&lt;br&gt;
👉 &lt;strong&gt;&lt;a href="https://github.com/kcvabeysinghe/EasyTDLib" rel="noopener noreferrer"&gt;EasyTDLib on GitHub&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If this template saves you a few hours of setup time, please consider leaving a ⭐ on the repository! Let me know in the comments if you have any questions.&lt;/p&gt;

</description>
      <category>android</category>
      <category>kotlin</category>
      <category>opensource</category>
      <category>telegram</category>
    </item>
  </channel>
</rss>
