Skip to content

Commit

Permalink
🪐 Merge #264: Televerse v1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
HeySreelal committed Jun 26, 2024
2 parents c98548f + cbe4696 commit 2d92bc6
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 351 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.19.4

- Minor README fix
- Fixes in documentation comments

# 1.19.3

- Changed return type of the `Transformer.transform` from
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,3 @@ clean, maintainable code that responds to messages and updates on Telegram. So,
what are you waiting for? Start building your Telegram bot with Televerse today!

[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Say%20Thanks-blue?style=flat-square&logo=buy-me-a-coffee)](https://www.buymeacoffee.com/heysreelal)

```
```
9 changes: 5 additions & 4 deletions lib/src/televerse/models/payload.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ typedef PayloadFiles = List<Map<String, MultipartFile>>;
///
/// This class encapsulates the data to be sent to an API endpoint. It can
/// contain both standard parameters and multipart files for upload.
///
/// Properties:
///
/// * [params]: An optional map containing additional parameters for the API call.
Expand Down Expand Up @@ -52,10 +53,10 @@ class Payload {
/// Each map associates a field key (a `String`) with its corresponding
/// `MultipartFile` object. This type is typically used to represent a collection
/// of files to be uploaded in a multipart request. (See [Payload.files] for details)
Payload({Map<String, dynamic>? params, this.files}) : params = params ?? {};
Payload([Map<String, dynamic>? params, this.files]) : params = params ?? {};

/// Creates a new `Payload` instance from an existing map of parameters and a list of multipart files.
///
/// This factory constructor is useful when you already have the data for the
/// payload in separate variables and want to create a new `Payload` object
/// without the need to construct a new map or list.
Expand All @@ -72,8 +73,8 @@ class Payload {
/// A new `Payload` object with the provided parameters and files.
factory Payload.from([Map<String, dynamic>? params, PayloadFiles? files]) =>
Payload(
params: params,
files: files,
params,
files,
);

/// Get the parameter value for the key
Expand Down
Loading

0 comments on commit 2d92bc6

Please sign in to comment.