-
Notifications
You must be signed in to change notification settings - Fork 8
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 #35 from KaikyuLotus/APIv7.11
Updated to bot API 7.11
- Loading branch information
Showing
9 changed files
with
115 additions
and
2 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.11.3 | ||
|
||
- Updated to bot API 7.11 | ||
|
||
## 1.11.2 | ||
|
||
- Added missing type factories | ||
|
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,26 @@ | ||
import 'dart:convert'; | ||
|
||
/// This object represents an inline keyboard button that copies specified text | ||
/// to the clipboard. | ||
class CopyTextButton { | ||
/// The text to be copied to the clipboard; 1-256 characters | ||
String text; | ||
|
||
/// Basic constructor | ||
CopyTextButton(this.text); | ||
|
||
/// Creates an object from a json | ||
factory CopyTextButton.fromJson(Map<String, dynamic> json) { | ||
return CopyTextButton(json['text']); | ||
} | ||
|
||
/// Creates a json from the object | ||
Map<String, dynamic> toJson() { | ||
return { | ||
'text': text, | ||
}; | ||
} | ||
|
||
@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
Oops, something went wrong.