create static method
MessageProperties
create({
- bool schemeUtilsIsSetDefaultData = false,
- String special_type = "messageProperties",
- String special_return_type = "messageProperties",
- bool? can_be_copied_to_secret_chat,
- bool? can_be_deleted_only_for_self,
- bool? can_be_deleted_for_all_users,
- bool? can_be_edited,
- bool? can_be_forwarded,
- bool? can_be_paid,
- bool? can_be_pinned,
- bool? can_be_replied,
- bool? can_be_replied_in_another_chat,
- bool? can_be_saved,
- bool? can_edit_media,
- bool? can_edit_scheduling_state,
- bool? can_get_embedding_code,
- bool? can_get_link,
- bool? can_get_media_timestamp_links,
- bool? can_get_message_thread,
- bool? can_get_read_date,
- bool? can_get_statistics,
- bool? can_get_viewers,
- bool? can_recognize_speech,
- bool? can_report_chat,
- bool? can_report_reactions,
- bool? can_report_supergroup_spam,
- bool? can_set_fact_check,
- bool? need_show_statistics,
override
Generate By AZKADEV | Azka Axelion Gibran Script Dont edit by hand or anything manual
Implementation
static MessageProperties create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "messageProperties",
String special_return_type = "messageProperties",
bool? can_be_copied_to_secret_chat,
bool? can_be_deleted_only_for_self,
bool? can_be_deleted_for_all_users,
bool? can_be_edited,
bool? can_be_forwarded,
bool? can_be_paid,
bool? can_be_pinned,
bool? can_be_replied,
bool? can_be_replied_in_another_chat,
bool? can_be_saved,
bool? can_be_shared_in_story,
bool? can_edit_media,
bool? can_edit_scheduling_state,
bool? can_get_embedding_code,
bool? can_get_link,
bool? can_get_media_timestamp_links,
bool? can_get_message_thread,
bool? can_get_read_date,
bool? can_get_statistics,
bool? can_get_viewers,
bool? can_recognize_speech,
bool? can_report_chat,
bool? can_report_reactions,
bool? can_report_supergroup_spam,
bool? can_set_fact_check,
bool? need_show_statistics,
}) {
// MessageProperties messageProperties = MessageProperties({
final Map messageProperties_data_create_json = {
"@type": special_type,
"@return_type": special_return_type,
"can_be_copied_to_secret_chat": can_be_copied_to_secret_chat,
"can_be_deleted_only_for_self": can_be_deleted_only_for_self,
"can_be_deleted_for_all_users": can_be_deleted_for_all_users,
"can_be_edited": can_be_edited,
"can_be_forwarded": can_be_forwarded,
"can_be_paid": can_be_paid,
"can_be_pinned": can_be_pinned,
"can_be_replied": can_be_replied,
"can_be_replied_in_another_chat": can_be_replied_in_another_chat,
"can_be_saved": can_be_saved,
"can_be_shared_in_story": can_be_shared_in_story,
"can_edit_media": can_edit_media,
"can_edit_scheduling_state": can_edit_scheduling_state,
"can_get_embedding_code": can_get_embedding_code,
"can_get_link": can_get_link,
"can_get_media_timestamp_links": can_get_media_timestamp_links,
"can_get_message_thread": can_get_message_thread,
"can_get_read_date": can_get_read_date,
"can_get_statistics": can_get_statistics,
"can_get_viewers": can_get_viewers,
"can_recognize_speech": can_recognize_speech,
"can_report_chat": can_report_chat,
"can_report_reactions": can_report_reactions,
"can_report_supergroup_spam": can_report_supergroup_spam,
"can_set_fact_check": can_set_fact_check,
"need_show_statistics": need_show_statistics,
};
messageProperties_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (messageProperties_data_create_json.containsKey(key) == false) {
messageProperties_data_create_json[key] = value;
}
});
}
return MessageProperties(messageProperties_data_create_json);
}