• Stars
    star
    407
  • Rank 106,183 (Top 3 %)
  • Language
    Dart
  • License
    Other
  • Created about 3 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Telegram Client Library To make it easier and faster for you to create programs that interact with the Telegram API, MTProto, TDlib, Telegram-bot-API with customizable features so that you can create bot / userbot / app (Dart / Flutter) programs on a large / business scale

Telegram Client library

Fast, Enjoyable & Customizable Telegram Client

Pub Version

Telegram client dart library untuk membuat telegram based flutter bot userbot bisa di server side dan client side, library ini 100% mudah di gunakan untuk membuat multi client sekaligus karena di library Telegram Client ini kamu hanya perlu memanggil fungsi saja dan update automatis akan di terima di event emitter

Features

  • πŸš€ Cross platform: mobile, desktop, browser, server
  • ⚑ Performance Bagus Dan Effisien
  • ❀️ Simple, powerful, & intuitive API

Quick Review

Video singkat cara menggunakan library ini untuk membuat project yang ingin anda bikin dengan template yang sudah saya buat.

1. Create And Run Application

2. Create And Run Telegram Userbot Tdlib

3. Create And Run Telegram Bot Api

Information

Library hanya update jika ada feature yang saya ingin update jika kamu butuh library dengan dokumentasi lengkap sehingga bisa develop app / bot / userbot / apapun itu kamu bisa membeli layanan Azkadev (50k / bulan) akses semua feature library umum

Examples App use Telegram Client

  1. Azkagram

Telegram Application dengan menambahkan design baru serta fitur userbot dan fitur lain yang tidak di sediakan secara resmi oleh telegram project ini sudah di close source code karena banyak yang berusaha membuat app ini untuk melakukan tindakan kriminal (spam, scam), Jika anda ingin membuat silahkan pelajari library ini.

  1. GLX Socmed

Examples Bot use Telegram Client

  1. AzkadevBot Telegram bot Berbayar complex yang bisa menghandle banyak group, ch, private, dengan banyak fitur payment gateway, Automation Store, clone userbot bot, dibikin dengan library ini tanpa campur bahasa code lain, Bot ini berjalan hanya menggunakan < 100mb di server sangat ringan karena menggunakan dart


Install Library

  1. Install Library
dart pub add telegram_client
  1. For Flutter
flutter pub add telegram_client telegram_client_flutter telegram_bot_api_flutter
  1. Cli
dart pub global activate telegram_client
  1. Setup

Setup automatis agar kamu tidak ribet compile tdlib, telegram-bot-api

telegram_client setup -f

Add Library

import 'package:telegram_client/telegram_client.dart';

Use Template Agar Cepat Selesai

telegram_client create name_project --template telegram_bot_tdlib_template

Docs

Library Feature

  • telegram client dart

    • βœ…οΈ support server side & client side
    • βœ…οΈ support multi token ( bot / userbot )
    • βœ…οΈ support bot and userbot
    • βœ…οΈ support telegram-bot-api (local / Bot-Api
    • βœ…οΈ Support long poll update bot api
    • βœ…οΈ Support telegram database library ( TDLIB )
    • βœ…οΈ Add more Api Humanize pretty update and method api humanize
    • βœ…οΈ Easy handle multi client
  • telegram client node tidak di urus lagi

    • βœ…οΈ support server side & client side
    • βœ…οΈ support multi token ( bot / userbot )
    • βœ…οΈ support bot and userbot
    • βœ…οΈ support telegram-bot-api local server
    • βœ…οΈ support telegram database library ( TDLIB )
    • βœ…οΈ Add more Api Humanize pretty update and method api humanize
  • telegram client google apps script tidak di urus lagi

    • βœ…οΈ support multi token ( bot / userbot )
    • βœ…οΈ support bot and userbot
    • ❌️ support telegram-bot-api local server
    • ❌️ support telegram database library ( Tdlib )

Add library on project

Jika anda ingin menggunakan library ini pastikan anda sudah bisa mengcompile tdlib ya

  • Automatis Jika anda tidak tahu cara mengcompile gunakan ini
flutter pub add telegram_client_flutter
  • Manual

Untuk menambahkan library kamu wajib mengcompile ke platform yang ingin kamu buat Build Tdlib

Android

Copy .so files from archive to example/android/app/main/jniLibs:

└── example 
    └── android 
        └── app 
            └── main 
                └── jniLibs 
                    └── arm64-v8a
                    β”‚   └── libtdjson.so
                    └── armeabi-v7a
                    β”‚   └── libtdjson.so
                    └── x86
                    β”‚   └── libtdjson.so
                    └── x86_64
                        └── libtdjson.so

Open file example/android/app/build.gradle

replace

sourceSets {
  main.java.srcDirs += 'src/main/kotlin'
}

by

sourceSets {
  main {
    java.srcDirs += 'src/main/kotlin'
    jniLibs.srcDirs = ['src/main/jniLibs']
  }
}

iOS and macOS

  1. Copy libtdjson.dylib from archive to example/ios
  2. Copy libtdjson.dylib from archive to example/macos
└── example 
    └── ios 
    β”‚   └── libtdjson.dylib
    └── macos
        └── libtdjson.dylib
  1. Open Runner.xcworkspace in Xcode.
  2. Add .dylib file to project.
  3. Find Frameworks, Libraries, and EmbeddedContent.
  4. Against libtdjson.dylib choose Embed & Sign.
  5. Find Signing & Capabilities.
  6. In Section App Sandbox (Debug and Profile) set true Outgoing Connections (Client).

Windows

  1. Copy files from archive to example/windows/tdlib
└── example 
    └── windows 
        └── tdlib 
            └── libcrypto-1_1.dll
            └── libssl-1_1.dll
            └── tdjson.dll
            └── zlib1.dll
  1. Open example/windows/CMakeLists.txt.
  2. Add below line set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}"):
# begin td
set(dll_path "${CMAKE_CURRENT_SOURCE_DIR}/tdlib")
install(FILES "${dll_path}/libcrypto-1_1.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime)
install(FILES "${dll_path}/libssl-1_1.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime)
install(FILES "${dll_path}/tdjson.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime)
install(FILES "${dll_path}/zlib1.dll" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime)
# end td

Linux

  1. Copy file from archive to example/linux/tdlib
└── example 
    └── linux 
        └── tdlib 
            └── libtdjson.so
  1. Open example/linux/CMakeLists.txt.
  2. Add at the end of file:
# begin td
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/tdlib/libtdjson.so" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
    COMPONENT Runtime)
# end td

Feature

Docs


Tdlib

gunakan ini untuk membuat userbot / bot / application based tdlib, quickstart: more update example check on this

  • single
import 'dart:io';
import 'package:telegram_client/telegram_client.dart';
void main(List<String> args) async {
  var path = Directory.current.path;
  Tdlib tg = Tdlib(pathTdl:"./tdjson.so", clientOption: {
    'api_id': 12345,
    'api_hash': 'abcdefgjjaijiajdisd',
    'database_directory': "$path/user/",
    'files_directory': "$path/user/",
  });
  tg.on("update", (UpdateTd update) {
    print(update.raw);
  });
  await tg.initIsolate();
}
  • multi

Di library ini kamu bisa membuat banyak client tanpa perlu repot menambahkan banyak kode sangat simpel dan ringkas menjadi satu

import 'dart:io';
import 'package:telegram_client/telegram_client.dart';
void main(List<String> args) async {
  var path = Directory.current.path;
  Tdlib tg = Tdlib(pathTdl:"./tdjson.so", clientOption:{
    'api_id': 12345678, /// telegram_api_id
    'api_hash': 'asaskaoskaoskoa', /// telegram_api_hash
    'database_directory': "$path/user_0/",
    'files_directory': "$path/user_0/",
  });
  tg.on("update", (UpdateTd update) {
    if (tg.client_id == update.client_id) {
      print("user_0");
    } else {
      print("user_1");
    }
    print(update.raw);
  });
  await tg.initIsolate();
  await tg.initIsolateNewClient(clientId: tg.client_create(), clientOption: {
    'database_directory': "${path}/user_1/",
    'files_directory': "${path}/user_1/",
  });
}

constructor

No key value Deskripsi required
1 pathTdl String path tdlib yes
2 clientOption object parameters di butuhkan jika method membutuhkannya no
  • examples
Tdlib tg = Tdlib(pathTdl:"./tdjson.so", clientOption: {
  'api_id': 123435,
  'api_hash': 'asmamskmaks',
  'database_directory': "",
  'files_directory': "",
  "use_file_database": true,
  "use_chat_info_database": true,
  "use_message_database": true,
  "use_secret_chats": true,
  'enable_storage_optimizer': true,
  'system_language_code': 'en',
  'new_verbosity_level': 0,
  'application_version': 'v1',
  'device_model': 'Telegram Client Hexaminate',
});

on

No key value Deskripsi required
1 type_update String path tdlib yes
2 function object parameters di butuhkan jika method membutuhkannya yes
  • examples
tg.on("update", (UpdateTd update) {
  print(update.raw);    
});

initIsolate

No key value Deskripsi required
1 clientId int addres client_create no
2 clientOption object parameters di butuhkan jika method membutuhkannya no
  • examples
tg.initIsolate();

request

No key value Deskripsi required
1 name_method String more method check tdlib-docs yes
2 parameters object parameters di butuhkan jika method membutuhkannya options
  • examples
tg.request("sendMessage", parameters: {
  "chat_id": 123456,
  "text": "Hello world"
});

invoke

No key value Deskripsi required
1 parameters object parameters di butuhkan jika method membutuhkannya yes
  • examples
tg.invoke({
  "@type": "getMe",
});

invokeSync

No key value Deskripsi required
1 parameters object parameters di butuhkan jika method membutuhkannya yes
  • examples
tg.invokeSync({
  "@type": "getMe",
});

Object


UpdateTd

raw


methods

more method check tdlib-docs

sendMessage

No key value Deskripsi required
1 chat_id String or int yes
2 text String yes

sendPhoto

No key value Deskripsi required
1 chat_id String or int yes
2 photo String yes

TelegramBotApi

Gunakan ini untuk berinteraksi dengan api telegram, semua method disini sudah auto update

quickstart:

  • single
import 'package:telegram_client/telegram_client.dart';
void main(List<String> args) async {
  TelegramBotApi tg = TelegramBotApi("token");
  tg.on("update", (UpdateApi update) {
    print(update.raw);
  });
  await tg.initIsolate(); // add this jika ingin menggunakan long poll update
}
  • multi
import 'package:telegram_client/telegram_client.dart';
void main(List<String> args) async {
  TelegramBotApi tg = TelegramBotApi("token");
  tg.on("update", (UpdateApi update) {
    print(update.raw);
  });
  await tg.initIsolate();
  await tg.initIsolate(tokenBot: "new_token_bot");
}

constructor

No key value Deskripsi required
1 string_token_bot String token bot @botfather yes
2 clientOption object parameters di butuhkan jika method membutuhkannya no
  • examples
TelegramBotApi tg = TelegramBotApi("token_bot");
request
No key value Deskripsi required
1 name_method String more method check tdlib-docs yes
2 parameters object parameters di butuhkan jika method membutuhkannya options
  • examples
tg.request("sendMessage", parameters:{
  "chat_id": 123456,
  "text": "Hello world"
});

MtProto

Untuk mtproto telegram ini belum jadi ya karena saya belum mengerti cara connect mtproto Quickstart:

import 'package:telegram_client/telegram_client.dart';
void main() async {
  Mtproto tg = Mtproto();
  tg.connect();
  tg.on("update", (data) {
    print(data);
  });
}

  • Tags: #telegram #telegram_client #tdlib #mtproto #telegram_bot_api #telegram_dart #telegram_flutter #telegram_clone #telegram_userbot #telegram_bot

  • Seo Telegram Dart Telegram Client Telegram Flutter Telegram userbot Telegram Bot Telegram Tdlib Tdlib Mtproto Telegram Bot Api Telegram Library Telegram clone Telegram clone flutter Tdlib Dart Tdlib Flutter Mtproto dart Mtproto flutter Telegram Bot Api Telegram Bot Api dart Telegram Bot Api Flutter


More Repositories

1

whisper

Whisper Dart is a cross platform library for dart and flutter that allows converting audio to text / speech to text / inference from Open AI models
C++
527
star
2

play

Flutter Library For Play Video and Audio cross platform support
Dart
360
star
3

bark

WIP Library Text To Speech From Suno AI's Bark in C/C++ for fast inference
C++
352
star
4

telegram

Telegram Flutter OpenSource
Dart
347
star
5

AzkaOs

open source operating system based flutter and kernel zircon
Dart
345
star
6

terminal_flutter

Terminal Flutter Cross platform with flutter and dart
Dart
344
star
7

webview_universal

Webview Flutter Cross platform
C++
344
star
8

llama

LLaMA (Language Learning for Machine Translation) adalah proyek riset yang diprakarsai oleh Facebook AI Research (FAIR) yang bertujuan untuk meningkatkan kualitas terjemahan mesin menggunakan pendekatan yang lebih alami dan berfokus pada bahasa asal.
C++
342
star
9

ntts

Neural Text To Speech Di Dart Cepat Ringan Tanpa Koneksi Internet dan bisa berjalan di cpu
C++
340
star
10

whatsapp

Whatsapp Client Tidak Resmi Untuk DART & FLUTTER (hanya support desktop only)
Dart
339
star
11

operating_system_guide

Operating System Guide Dari 0
Assembly
339
star
12

zig_cheatsheet

Zig adalah bahasa pemrograman dan toolchain tujuan umum untuk memelihara perangkat lunak yang kuat, optimal, dan dapat digunakan kembali.
Zig
339
star
13

miniaudio

C
337
star
14

midtrans

Midtrans Payment Gateway Indonesia
Dart
337
star
15

onnx

ONNX DART LIBRARY
C++
337
star
16

telegram_keep_account_dart

Telegram keep account dart, source code untuk menyimpan account telegram tanpa applikasi di desktop, unlimited account
Dart
337
star
17

glx_telegram_bot

GLX TELEGRAM BOT
Dockerfile
336
star
18

freeform

C++
336
star
19

glx_gram

WIP GLX Gram Telegram Open source dari pengganti Azkagram
Dart
336
star
20

record_widget

Record Widget Flutter realtime fast and efficient and can make automation To Video
C++
336
star
21

jaseb_userbot_telegram

Jaseb Userbot Telegram Basic Open Source
Dart
336
star
22

oy

Dart
336
star
23

webify

Webify Framework Untuk Membangun app web dengan style code flutter
Dart
336
star
24

json_to_dart_flutter

JSON TO DART application flutter cross platform
Dart
336
star
25

products_telegram_userbot_lifetime

Telegram Userbot Life Time Multi Client Support Repeat MEssage / Jaseb / Sebar List
C++
335
star
26

rest_api_dart

Simple rest api dari bahasa code dart vm menggunakan frameworkd alfred
Dart
335
star
27

packagex

Dart
335
star
28

game

Wip Game Engine Library Dart And Flutter Support
C++
335
star
29

galaxeus

Galaxeus library
Dart
335
star
30

github_client

Github Client Api
Dart
335
star
31

glx_lib.cpp

CPP Library for make program more easy with readable syntax
C++
335
star
32

isar_inspector

Isar inspector local
Dart
335
star
33

payment_gateway

Full Berbagai Payment Gateway Dalam 1 Library Bisa Di Berbagai Platform Flutter Dan Dart
C++
335
star
34

jsonview

library untuk membuat app / widget dari data json
C++
335
star
35

glx_telegram_userbot

GLX Telegram Userbot
Dockerfile
335
star
36

autopost_telegram_bot_dart

AutoPost Telegram bot dari bahasa code dart
Dart
335
star
37

fetch_api_bmkg_dart

Fetch / Scrape api Bmkg dart simple menggunakan library http dan galaxeus
Dart
335
star
38

products_telegram_bot

Telegram Bot General Multi Manage Group, Channel, Private
C++
335
star
39

nokos_telegram_generator_test_dc

NOKOS TELEGRAM GENERATOR TEST DC
C++
335
star
40

azka_studio_code

C++
335
star
41

telegram_userbot_dart

Telegram Userbot dart simple menggunakan library telegram client dan bahasa code dart + tdlib
Dart
335
star
42

glx_whatsapp_userbot

GLX Whatsapp Userbot
Dockerfile
334
star
43

twitter_auto_post_bot_dart

Twitter Auto Post Bot Dart
Dart
334
star
44

telegram_bot_dart

Telegram bot dart simple menggunakan library telegram client
Dart
334
star
45

demo_telegram_bot

334
star
46

termux

WIP TERMUX FLUTTER LIBRARY
C++
334
star
47

paas

Wip Full Open Source PAAS Platform As Services With Language Dart And Flutter Framework
C++
334
star
48

proxmox

C++
334
star
49

tgs

Telegram Animation Sticker
C++
334
star
50

AzkaDevOS

AzkaDev OS Linux Distro untuk developer
JavaScript
334
star
51

azkagram

AZKAGRAM Telegram Unnoficial Yang berfokus pada design + fitur yang tidak ada di Telegram Resmi
C++
334
star
52

emulator

C++
334
star
53

flutter_3d_native

C++
334
star
54

drive_gram

C++
333
star
55

specta

Specta Open source app and ecosystem untuk edukasi + portofolio saya:V
333
star
56

products_telegram_bot_ai

Telegram Bot Local Ai Indonesia
C++
333
star
57

telegram_bot_keep_dart

Telegram Bot Keep untuk menyimpan akunbot telegram dengan jumlah unlimited
Dart
333
star
58

readme_update

Dart
333
star
59

smartphone_tool

C++
333
star
60

specta_apis_scheme

Dart
333
star
61

demo_telegram_userbot

333
star
62

chatbot_flutter

Chatbot Flutter Realtime + backend websocket dart
C++
333
star
63

onnxruntime.cpp

333
star
64

supabase_client

Dart
333
star
65

chrome_multi

Dart
333
star
66

isarx

Dart
333
star
67

next_gen_ui

333
star
68

bootloader_simple

333
star
69

stable_diffusion

Wip Stable Diffusion Dart
C++
333
star
70

telegraph

Telegraph Client Api in dart support cross platform flutter apps
Dart
333
star
71

camera_universal

Dart
333
star
72

menfess_telegram_bot_dart

Menfess Telegram bot dart indonesia
Dart
333
star
73

edge

Running Dart Edge Rest api on most platform (supabase, Cloudflare, vercel, netlify and more).
C++
333
star
74

products_whatsapp_bot

C++
333
star
75

codespaces

Shell
333
star
76

tcpsocket_dart

Tcp Socket Client dan server auto reconnect menggunakan bahasa code dart vm
Dart
333
star
77

twitter_client

Twitter Client api Library mudah di gunakan
Dart
332
star
78

whatsapp_bot_dart

Whatsapp bot Dart example
Dart
332
star
79

tensorflow_native

Dart
332
star
80

dart_vercel

Dart
332
star
81

dart_cheatsheet

Dart
332
star
82

speech_to_text_telegram_bot_dart

Speech To Text Telegram Bot Dart
Dart
332
star
83

speed_code_flutter

Speed Code flutter experiment flutter widget to video
C++
332
star
84

code_shot_flutter

Code Shot, Code to image flutter
C++
332
star
85

telegram_cli

332
star
86

products_general_machine_system_services

General Machine System Services
C++
332
star
87

coinlox_miner

332
star
88

telegram_bot_api_android

332
star
89

telegram_keep_account_app

Telegram Keep Account App
C++
332
star
90

azka_userbot_telegram

AZKADEV Userbot TELEGRAM Simple Hanya untuk sumber belajar!
Dart
332
star
91

jasa_developer

Jasa Developer Dart & Flutter (App - Web - Backend - api - database - bot - userbot - ai - automation)
C++
332
star
92

websocket_dart

Websocket client dan server auto reconnect menggunakan bahasa code dart vm
Dart
332
star
93

telegram_userbot_gratis

Telegram Userbot Gratis LIFE TIME Bisa buat spam / delay spam / repeat message / jaseb
C++
332
star
94

local_ai_app_gratis

LOCAL AI APP GRATIS / DEMO Memerlukan Akun Github
C++
332
star
95

tgcalls

C++
332
star
96

neofetch

332
star
97

fuchsia

331
star
98

azkadev.github.io

JavaScript
331
star
99

baas

Wip Open Source BAAS Backend As Services With Language Dart And Flutter Framework
331
star
100

docker

Docker dart library
Dart
331
star