https://github.com/rickypid/telegram_link
simple library for generating telegram links. It is possible to generate links with number or username
https://github.com/rickypid/telegram_link
custom dart dart-library dart-package dartlang flutter flutter-library flutter-package telegram telegram-url
Last synced: 2 months ago
JSON representation
simple library for generating telegram links. It is possible to generate links with number or username
- Host: GitHub
- URL: https://github.com/rickypid/telegram_link
- Owner: rickypid
- License: bsd-3-clause
- Created: 2022-05-22T16:49:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-10T19:47:48.000Z (about 2 years ago)
- Last Synced: 2025-02-05T10:24:36.230Z (4 months ago)
- Topics: custom, dart, dart-library, dart-package, dartlang, flutter, flutter-library, flutter-package, telegram, telegram-url
- Language: Dart
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# telegram_link
[](https://github.com/rickypid/telegram_link)
[](https://pub.dartlang.org/packages/telegram_link)
[](https://pub.dev/packages/telegram_link/score)
[](https://pub.dev/packages/telegram_link/score)[](https://github.com/rickypid/telegram_link/issues)
simple library for generating telegram links. It is possible to generate links with number or username.
## Getting started
### Installation
#### From `pubspec.yaml`
Add the following line to `pubspec.yaml`:
```yaml
dependencies:
telegram_link:```
and
With Dart:
```bash
dart pub get```
With Flutter:
```bash
flutter pub get```
#### From cli
run following command:
With Dart:
```bash
dart pub add telegram_link```
With Flutter:
```bash
flutter pub add telegram_link```
## Usage
*Complete example [available here](https://github.com/rickypid/telegram_link/blob/master/example/telegram_link_example.dart).*
```dart
import 'package:telegram_link/telegram_link.dart';const phoneNumber = '+39 12345678';
const username = 'test_username';void main() {
print(TelegramLink(phoneNumber: phoneNumber).toString());
print(TelegramLink(username: username).toString());
}
```## 📚 My open source projects
### Flutter
| Package | Verison | Score | Likes | Test | Coverage |
|--|--|--|--|--|--|
| [](https://github.com/rickypid/flutter_expandable_table) | [](https://pub.dartlang.org/packages/flutter_expandable_table) | [](https://pub.dev/packages/flutter_expandable_table/score) | [](https://pub.dev/packages/flutter_expandable_table/score) | | |
| [](https://github.com/rickypid/widget_tree_depth_counter) | [](https://pub.dartlang.org/packages/widget_tree_depth_counter) | [](https://pub.dev/packages/widget_tree_depth_counter/score) | [](https://pub.dev/packages/widget_tree_depth_counter/score) | | |
| [](https://github.com/rickypid/flutter_scroll_shadow) | [](https://pub.dartlang.org/packages/flutter_scroll_shadow) | [](https://pub.dev/packages/flutter_scroll_shadow/score) | [](https://pub.dev/packages/flutter_scroll_shadow/score) | | |
| [](https://github.com/rickypid/flutter_bargraph) | [](https://pub.dartlang.org/packages/flutter_bargraph) | [](https://pub.dev/packages/flutter_bargraph/score) | [](https://pub.dev/packages/flutter_bargraph/score) | | |### Dart
| Package | Verison | Score | Likes | Test | Coverage |
|--|--|--|--|--|--|
| [](https://github.com/rickypid/cowsay) | [](https://pub.dartlang.org/packages/cowsay) | [](https://pub.dev/packages/cowsay/score) | [](https://pub.dev/packages/cowsay/score) | [](https://github.com/rickypid/cowsay/actions/workflows/test.yml) | [](https://codecov.io/gh/rickypid/cowsay) |
| [](https://github.com/rickypid/telegram_link) | [](https://pub.dartlang.org/packages/telegram_link) | [](https://pub.dev/packages/telegram_link/score) | [](https://pub.dev/packages/telegram_link/score) | [](https://github.com/rickypid/telegram_link/actions/workflows/test.yml) | [](https://codecov.io/gh/rickypid/telegram_link) |