-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from KaikyuLotus/APIv7.1
Updated to bot API 7.1
- Loading branch information
Showing
9 changed files
with
109 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## 1.3.0 | ||
|
||
- Updated to bot API 7.1 | ||
|
||
## 1.2.0 | ||
|
||
- Updated to bot API 7.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'dart:convert'; | ||
|
||
/// This object represents a service message about a user boosting a chat. | ||
class ChatBoostAdded { | ||
/// Number of boosts added by the user | ||
int boostCount; | ||
|
||
/// Basic constructor | ||
ChatBoostAdded(this.boostCount); | ||
|
||
/// Creates a object from a json | ||
factory ChatBoostAdded.fromJson(Map<String, dynamic> json) { | ||
return ChatBoostAdded( | ||
json['boost_count'], | ||
); | ||
} | ||
|
||
/// Creates a json from the object | ||
Map toJson() { | ||
return { | ||
'boost_count': boostCount, | ||
}; | ||
} | ||
|
||
@override | ||
String toString() => json.encode(this); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
name: dart_telegram_bot | ||
description: A Telegram Bot API wrapper made to make fast Telegram bots with as less code as possible. | ||
version: 1.2.0 | ||
version: 1.3.0 | ||
homepage: https://github.com/KaikyuDev/dart-telegram-bot | ||
|
||
environment: | ||
sdk: '>=2.15.0 <4.0.0' | ||
sdk: '>=2.17.7 <4.0.0' | ||
|
||
dependencies: | ||
http: ^1.0.0 | ||
logging: ^1.0.1 | ||
http: ^1.2.1 | ||
logging: ^1.2.0 | ||
|
||
dev_dependencies: | ||
lints: ^3.0.0 | ||
test: ^1.16.0 | ||
test: ^1.25.3 |