패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.6.0

tdlib

TDLib용 Flutter 플러그인. 완전한 tdlib-tdjson 바인딩 패키지.

30일 다운로드
250
좋아요
65
Pub 점수
60

패키지 설치

flutter pub add tdlib

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Flutter 플러그인으로 TDLib(텔레그램 데이터베이스 라이브러리)에 대한 완전한 바인딩을 제공하여 Flutter 앱 내에서 네이티브 텔레그램 기능을 사용할 수 있게 합니다. tdjson을 통해 텔레그램의 전체 API에 접근할 수 있으며, 사용자 인증, 채팅 관리, 메시지 전송 및 미디어 처리 등의 기능을 갖춘 메시징 애플리케이션을 개발할 수 있습니다. 이 패키지는 Flutter와의 원활한 통합을 위해 설계되었으며, Android 및 iOS 플랫폼 모두를 지원합니다. 텔레그램과 유사한 채팅 경험을 앱에 포함시키고 싶지만, 처음부터 구축하고 싶지 않은 개발자에게 이상적입니다.

사용 사례

  • Telegram 클라이언트 빌드
  • 실시간 메시징 구현
  • 채팅 기반 애플리케이션 만들기
  • 텔레그램 로그인 통합
  • 그룹 통신 도구 개발

주요 기능

  • 완전한 TDLib 통합
  • 크로스 플랫폼 지원
  • Telegram을 통한 인증
  • 메시지 전송 및 수신
  • 미디어 파일 처리

적합한 대상

  • 텔레그램 클라이언트를 개발하는 개발자
  • 보안 메시징이 필요한 앱
  • Telegram API 접근이 필요한 프로젝트
  • 모바일 채팅 애플리케이션 개발자

고려 사항

  • TDLib에 대한 이해가 필요합니다
  • 대규모 바이너리 크기
  • 적절한 상태 관리가 필요합니다
  • 제한된 문서
  • 플랫폼별 설정이 필요합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

TDLib

Flutter Plugin for TDLib (Telegram Database Library) v1.8.15

Telegram Tdlib is a complete library for creating telegram clients, it also has a simple tdjson ready-to-use library to ease the integration with different programming languages and platforms.
This plugin is a complete tdlib-tdjson binding package to help you create your own Telegram clients.

See the example directory for the complete sample app.

Installation

Install the plugin by running the following command from the project root:

flutter pub add tdlib

Initialization

This plugin contains only Android tdlib-tdjson library. In case of other platforms usage you need to manually put the tdjson library in your project

  • for Windows:
  • for IOS and macOS support:
  • for web:
    • Copy all files in data/web-package to web folder in your project.
    • Point tdlib.js file in index.html:
      <!--add this between the <body> tags -->
      <script src="/tdlib.js" type="application/javascript"></script>
      

To initialize tdlib plugin, call the initialize method on the TdPlugin class.

Since this is an asynchronous operation, the main function can be modified to ensure initialization is complete before running the application.

The method accepts LIBTDJSON_PATH for windows platform or LIBTDJSON_NAME for IOS & macOS.

Import tdlib plugin:

import 'package:tdlib/tdlib.dart';

Next, within the main function, initialize TdPlugin:

// lib/main.dart

void main() async {
  await TdPlugin.initialize();
  runApp(MyApp());
}

Usage

Getting started with TDLib

카테고리

의존성

의존성 목록 2 개

  • ffi^2.1.0
  • js^0.6.7

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.