Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alejandrogiubel/tele_catcher
https://github.com/alejandrogiubel/tele_catcher
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alejandrogiubel/tele_catcher
- Owner: alejandrogiubel
- License: mit
- Created: 2023-02-04T16:07:10.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-17T13:59:09.000Z (5 months ago)
- Last Synced: 2024-08-17T14:59:05.765Z (5 months ago)
- Language: C++
- Size: 295 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Features
Catch your errors and send it to telegram
## Getting started
Add tele_catcher to your pubspec.yaml
```yaml
dependencies:
tele_catcher: ^1.1.0
``````yaml
dependencies:
tele_catcher:
git: https://github.com/alejandrogiubel/tele_catcher
```## Usage
First you need to create a telegram bot with BotFather in order to get the bot token, them you can start the bot in private chat or group chat.
In order to get the chat id read
https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-idInit tele_catcher in your main function
```dart
await TeleCatcher.start('1111111111:aqwdergydsghbnhytyjuhf304-dkmtihndeyu58', 000000000);
```Send report
```dart
TeleCatcher.sendError('This is a simple message');
```If you want a global error catcher and send the report to TeleCatcher
```dart
FlutterError.onError = (details) {
TeleCatcher.sendError(details.toString());
};
```## Additional information
PR are welcome