create static method
SendMessage
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "sendMessage",
- String special_return_type = "message",
- bool? is_tdlib_method,
- num? chat_id,
- num? message_thread_id,
- InputMessageReplyTo? reply_to,
- MessageSendOptions? options,
- ReplyMarkup? reply_markup,
- InputMessageContent? input_message_content,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static SendMessage create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "sendMessage",
String special_return_type = "message",
bool? is_tdlib_method,
num? chat_id,
num? message_thread_id,
InputMessageReplyTo? reply_to,
MessageSendOptions? options,
ReplyMarkup? reply_markup,
InputMessageContent? input_message_content,
}) {
// SendMessage sendMessage = SendMessage({
final Map sendMessage_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"is_tdlib_method": is_tdlib_method,
"chat_id": chat_id,
"message_thread_id": message_thread_id,
"reply_to": (reply_to != null) ? reply_to.toJson() : null,
"options": (options != null) ? options.toJson() : null,
"reply_markup": (reply_markup != null) ? reply_markup.toJson() : null,
"input_message_content": (input_message_content != null) ? input_message_content.toJson() : null,
};
sendMessage_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (sendMessage_data_create_json.containsKey(key) == false) {
sendMessage_data_create_json[key] = value;
}
});
}
return SendMessage(sendMessage_data_create_json);
}