flutter_telegram_bot 0.0.21
flutter_telegram_bot: ^0.0.21 copied to clipboard
Telegram API package
flutter_telegram_bot.dart #
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"},
);