#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| bool | allow_new_chats_from_unknown_users_ |
| | True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting.
|
| |
| int53 | incoming_paid_message_star_count_ |
| | Number of Telegram Stars that must be paid for every incoming private message by non-contacts; 0-getOption("paid_message_star_count_max"). If positive, then allow_new_chats_from_unknown_users must be true. The current user will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending. Can be positive, only if getOption("can_enable_paid_messages") is true.
|
| |
|
| static const std::int32_t | ID = 123716192 |
| | Identifier uniquely determining a type of the object.
|
| |
Contains privacy settings for chats with non-contacts.
Definition at line 46354 of file td_api.h.
◆ newChatPrivacySettings() [1/2]
| td::td_api::newChatPrivacySettings::newChatPrivacySettings |
( |
| ) |
|
Contains privacy settings for chats with non-contacts.
◆ newChatPrivacySettings() [2/2]
| td::td_api::newChatPrivacySettings::newChatPrivacySettings |
( |
bool |
allow_new_chats_from_unknown_users_, |
|
|
int53 |
incoming_paid_message_star_count_ |
|
) |
| |
Contains privacy settings for chats with non-contacts.
- Parameters
-
| [in] | allow_new_chats_from_unknown_users_ | True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting. |
| [in] | incoming_paid_message_star_count_ | Number of Telegram Stars that must be paid for every incoming private message by non-contacts; 0-getOption("paid_message_star_count_max"). If positive, then allow_new_chats_from_unknown_users must be true. The current user will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending. Can be positive, only if getOption("can_enable_paid_messages") is true. |
◆ store()
| void td::td_api::newChatPrivacySettings::store |
( |
TlStorerToString & |
s, |
|
|
const char * |
field_name |
|
) |
| const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
◆ allow_new_chats_from_unknown_users_
| bool td::td_api::newChatPrivacySettings::allow_new_chats_from_unknown_users_ |
True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting.
Definition at line 46365 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::newChatPrivacySettings::ID = 123716192 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 46383 of file td_api.h.
◆ incoming_paid_message_star_count_
| int53 td::td_api::newChatPrivacySettings::incoming_paid_message_star_count_ |
Number of Telegram Stars that must be paid for every incoming private message by non-contacts; 0-getOption("paid_message_star_count_max"). If positive, then allow_new_chats_from_unknown_users must be true. The current user will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending. Can be positive, only if getOption("can_enable_paid_messages") is true.
Definition at line 46367 of file td_api.h.
The documentation for this class was generated from the following file:
- /home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h