flutter_telegram_bot 0.0.21 copy "flutter_telegram_bot: ^0.0.21" to clipboard
flutter_telegram_bot: ^0.0.21 copied to clipboard

Telegram API package

flutter_telegram_bot.dart #

pub package

A Flutter/Dart package to send error reports via a Telegram bot.
Send detailed messages including server info, device info, and request data directly to your Telegram channel or user.


Features #

  • Send error reports to Telegram with detailed formatting.
  • Include device information and request payloads.
  • Simple and easy to integrate with Flutter projects.
  • Fully customizable message templates.

Getting Started #

Add this package to your pubspec.yaml:

dependencies:
  flutter_telegram_bot.dart: ^0.0.1


## Example

Here is a simple usage example:

```dart
import 'package:telegram_service/telegram_service.dart';

final telegram = TelegramService(
  botToken: "YOUR_BOT_TOKEN",
  chatId: "@your_channel_or_user",
);

telegram.sendErrorReport(
  username: "Alice",
  serverName: "Server-1",
  deviceInfo: {"Brand": "Samsung", "Model": "Galaxy S24"},
  requestData: {"endpoint": "/api/login", "method": "POST", "body": {}, "messages": "Invalid credentials"},
);

1
likes
0
points
16
downloads

Publisher

verified publishercinar.fun

Weekly Downloads

Telegram API package

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on flutter_telegram_bot