ptgc 1.0.0
ptgc: ^1.0.0 copied to clipboard
A high-level client for the Telegram Client API (MTProto). Log in as a real user account and control chats and channels — ban, kick, restrict, promote, invite and list members — plus contacts, dialogs [...]
We analyzed this package 17 hours ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too long.
Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
22755 out of 22855 API elements (99.6 %) have documentation comments.
Some symbols that are missing documentation: ptgc.AdminRights.AdminRights.fromRaw, ptgc.AdminRights.AdminRights.new, ptgc.AdminRights.copyWith, ptgc.AuthNamespace.AuthNamespace.new, ptgc.AuthRequiredException.AuthRequiredException.new.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:ptgc/ptgc.dartthat imports:package:ptgc/src/transport.dartthat imports:dart:io
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 6 issues. Showing the first 2:
WARNING: Returning a 'Future' without 'await' inside a try block.
lib/src/auth.dart:123:7
╷
123 │ return _handleAuthorization(auth);
│ ^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/auth.dart
INFO: Statements in an if should be enclosed in a block.
lib/src/chats.dart:219:7
╷
219 │ _extractNewChatId(result.updates);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/chats.dart
10/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
archive |
^4.0.7 |
4.1.0 | 4.1.0 | |
cryptography |
^2.7.0 |
2.9.0 | 2.9.0 | |
penv |
^1.0.0 |
1.0.0 | 2.0.0 | |
pointycastle |
^4.0.0 |
4.0.0 | 4.0.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
- | 1.19.1 | 1.19.1 | |
convert |
- | 3.1.2 | 3.1.2 | |
crypto |
- | 3.0.7 | 3.0.7 | |
ffi |
- | 2.2.0 | 2.2.0 | |
meta |
- | 1.19.0 | 1.19.0 | |
path |
- | 1.9.1 | 1.9.1 | |
posix |
- | 6.5.2 | 6.5.2 | |
typed_data |
- | 1.4.0 | 1.4.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^1.0.0` on penv does not support the stable version `2.0.0`, that was published 3 days ago.
When penv is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions penv to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.18, Dart 3.13.1.
Check the analysis log for details.