telegram 0.0.9 copy "telegram: ^0.0.9" to clipboard
telegram: ^0.0.9 copied to clipboard

A simple and light weight utility for sending message via Telegram...

telegram Points Popularity Likes Telegram WhatsApp Contribute Now Donate Now

A simple and light weight utility for sending messages via Telegram. Telegram is a globally accessible freemium, cross-platform, cloud-based instant messaging service. The service also provides optional end-to-end encrypted chats and video calling, VoIP, file sharing and several other features.

Features #

flutter cmd

📨 Send Message via Telegram

🔗 Telegram Link Generator

📌 Copy Telegram Link

💬 Open Chat Directly

📢 Join Telegram Channel/Group

✅ Check if Telegram is Installed

📞 Share Contact via Telegram

👥 Open Telegram Group

📷 Send Media via Telegram

🔍 Check Username Availability

🤖 Open Telegram Bot

🔥 more coming soon...

Installation #

Add telegram as dependency by running the command below:

flutter pub add telegram
copied to clipboard

OR

Add telegram this in your pubspec.yaml:

dependencies:
  telegram: latest_version
copied to clipboard

Usage 📨 #

FAQs
/// Send message via Telegram
Telegram.send(
  username:'UsamaSarwar',
  message:'Thanks for building Telegram Package :)'
);
copied to clipboard
/// Copy Telegram message Link to clipboard
Telegram.copyLinkToClipboard(
  username:'UsamaSarwar',
  message:'Thanks for building Telegram Package :)'
);
copied to clipboard
/// Get Telegram message link as String
Telegram.getLink(
  username:'UsamaSarwar',
  message:'Thanks for building Telegram Package :)'
);
copied to clipboard
/// Open chat with a specific username
Telegram.openChat(username: 'UsamaSarwar');
copied to clipboard
/// Join a Telegram channel or group using an invite link
Telegram.joinChannel(inviteLink: 'https://t.me/joinchat/XXXXXXX');
copied to clipboard
/// Join a Telegram channel or group using an invite link
Telegram.joinChannel(inviteLink: 'https://t.me/joinchat/XXXXXXX');
copied to clipboard
/// Check if Telegram is installed on the device
bool installed = await Telegram.isTelegramInstalled();
print('Telegram installed: $installed');
copied to clipboard
/// Share a contact via Telegram
Telegram.shareContact(
  phone: '+923100007773',
  firstName: 'Usama',
  lastName: 'Sarwar'
);
copied to clipboard
/// Open a Telegram group by username
Telegram.openGroup(username: 'yourgroupname');
copied to clipboard
/// Send a media file via Telegram
Telegram.sendMedia(filePath: 'https://example.com/sample.jpg');
copied to clipboard
/// Check if a Telegram username is available
bool exists = await Telegram.checkUsernameAvailability(username: 'exampleUser');
print('Username exists: $exists');
copied to clipboard
/// Open a Telegram bot using its username
Telegram.openBot(username: 'MyTelegramBot');
copied to clipboard

Import the package and call any of the methods in your Flutter app. For example:

import 'package:telegram/telegram.dart';

void main() async {
  try {
    await Telegram.send(
      username: 'UsamaSarwar',
      message: 'Thanks for building Telegram Package :)'
    );
  } catch (e) {
    print('Error: $e');
  }
}
copied to clipboard

Contribution 💙 #

You are warmly welcome for contributing telegram package. Checkout this contribution guide.

telegram contributions

Open Source Contributor from Punjab, Pakistan 🇵🇰


Flutter telegram package

25
likes
160
points
252
downloads
screenshot

Publisher

verified publisherusama.dev

Weekly Downloads

2024.09.16 - 2025.03.31

A simple and light weight utility for sending message via Telegram...

Homepage
Repository (GitHub)
Contributing

Topics

#telegram #message #send #chat

Documentation

API reference

License

MIT (license)

Dependencies

flutter, url_launcher

More

Packages that depend on telegram