Skip to content
pubscout

telegram

1.0.0, released a year ago by usama.dev

A Telegram utility for Flutter supporting URL schemes and Bot API integration.

WASM-ready
$ flutter pub add telegram
Source repository

What it does

Provides client-side URL schemes and server-side Telegram Bot API integration. Enables message sending, media sharing, chat management, webhook handling, and Web App support within Flutter applications.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to integrate Telegram Bot API features into your Flutter application.
  • You want to use Telegram URL schemes for opening chats, joining channels, or sharing content.

Skip it when

  • You require a general-purpose chat UI kit rather than a Telegram wrapper.
  • You need a backend infrastructure that is not tied to Telegram.

Strengths

  • Comprehensive coverage of Telegram Bot API methods.
  • Includes both client-side URL schemes and server-side bot operations.
  • Modular architecture allowing selective imports.

Weaknesses

  • Requires external setup such as obtaining a bot token from BotFather.
  • Tied exclusively to the Telegram ecosystem.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Requires setting a bot token using Telegram.setBotToken() for Bot API features.

import 'package:telegram/telegram.dart';

void main() async {
  Telegram.setBotToken('YOUR_BOT_TOKEN_HERE');
  await Telegram.sendMessage(
    chatId: '@UsamaSarwar',
    text: 'Hello from my Flutter bot! 🤖',
  );
}

Alternatives

Packages that do the same job and could replace telegram.

Works with

Packages commonly used together with telegram: ones it builds on, ones built on it, and its own family.