パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.6.0

tdlib

TDLib用のFlutterプラグイン。完全なtdlib-tdjsonバインディングパッケージ。

30日間ダウンロード
250
いいね数
65
Pub ポイント
60

パッケージをインストール

flutter pub add tdlib

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Flutterプラグインで、TDLib(Telegramデータベースライブラリ)への完全なバインディングを提供し、Flutterアプリ内でのネイティブなTelegram機能を可能にします。tdjsonを通じてTelegramの完全なAPIにアクセスでき、ユーザー認証、チャット管理、メッセージ送信、メディア処理などの機能を持つメッセージングアプリの開発が可能です。このパッケージはFlutterとのシームレスな統合を目的としており、AndroidおよびiOSの両方のプラットフォームをサポートしています。Telegramのようなチャット体験をアプリに組み込みたいが、ゼロから構築したくない開発者にとって理想的です。

用途

  • Telegramクライアントの構築
  • リアルタイムメッセージの実装
  • チャットベースのアプリケーションを作成する
  • Telegramログインの統合
  • グループコミュニケーションツールの開発

主な機能

  • 完全な TDLib 統合
  • クロスプラットフォーム対応
  • Telegram を通じた認証
  • メッセージの送信と受信
  • メディアファイルの取り扱い

適している対象

  • 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

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。