Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Oct 1, 2022
1 parent 54df091 commit 1a6c27b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
8 changes: 7 additions & 1 deletion dart/telegram_client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,10 @@
- improve tesr speed

## 0.3.52
- add tdlib methods enum for make easy
- add tdlib methods enum for make easy

## 0.3.53
- add tdlib parameters methods

## 0.3.54
- add tl util
1 change: 1 addition & 0 deletions dart/telegram_client/lib/telegram_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export 'telegram_bot_api/telegram_bot_api.dart'

part 'tl/tdlib_methods.dart';
part 'tl/tdlib_parameters.dart';
part 'util/util.dart';
23 changes: 23 additions & 0 deletions dart/telegram_client/lib/util/util.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
part of telegram_client;

/// telegram util
class TgUtils {
/// telegram utils
TgUtils();

/// ccreate offset for tl
static List<int> createOffset(
{required int totalCount, required int limitCount}) {
late int offset = 0;
late List<int> listOffset = [0];
for (var i = 0; i < (totalCount ~/ limitCount).toInt(); i++) {
for (var ii = 0; ii <= limitCount; ii++) {
if (ii == limitCount) {
offset = (offset + limitCount);
}
}
listOffset.add(offset);
}
return listOffset;
}
}
2 changes: 1 addition & 1 deletion dart/telegram_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: telegram_client
description: Telegram Client Lightweight, blazing and Highly customizable for make application telegram based tdlib, mtproto, or bot api and support server side.
version: 0.3.52
version: 0.3.54
homepage: https://github.com/azkadev/telegram_client/wiki
repository: https://github.com/azkadev/telegram_client/tree/main/dart/telegram_client
issue_tracker: https://github.com/azkadev/telegram_client/issues
Expand Down

0 comments on commit 1a6c27b

Please sign in to comment.