ptgc 1.0.1 copy "ptgc: ^1.0.1" to clipboard
ptgc: ^1.0.1 copied to clipboard

A high-level client for the Telegram Client API (MTProto). Log in as a user and manage chats, channels, members, contacts, and messages.

140/ 160
pub points
90
downloads

We analyzed this package 7 hours ago, and awarded it 140 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 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.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 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.dart that imports:
  • package:ptgc/src/transport.dart that imports:
  • dart:io
Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

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

Partially passed report section
Support up-to-date dependencies
40 / 40trigger folding of the section

Partially passed check 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.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 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.

Weekly downloads

Display as:
By versions:
0
likes
140
points
90
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A high-level client for the Telegram Client API (MTProto). Log in as a user and manage chats, channels, members, contacts, and messages.

Repository (GitHub)
View/report issues

Topics

#telegram #mtproto #userbot #api

License

MIT (license)

Dependencies

archive, cryptography, penv, pointycastle

More

Packages that depend on ptgc