Add businessConnection.user_chat_id.
This commit is contained in:
parent
dfec531af2
commit
c4ceac218f
@ -4217,10 +4217,11 @@ speechRecognitionResultError error:error = SpeechRecognitionResult;
|
||||
//@description Describes a connection of the bot with a business account
|
||||
//@id Unique identifier of the connection
|
||||
//@user_id Identifier of the business user that created the connection
|
||||
//@user_chat_id Chat identifier of the private chat with the user
|
||||
//@date Point in time (Unix timestamp) when the connection was established
|
||||
//@can_reply True, if the bot can send messages to the connected user; false otherwise
|
||||
//@is_enabled True, if the connection is enabled; false otherwise
|
||||
businessConnection id:string user_id:int53 date:int32 can_reply:Bool is_enabled:Bool = BusinessConnection;
|
||||
businessConnection id:string user_id:int53 user_chat_id:int53 date:int32 can_reply:Bool is_enabled:Bool = BusinessConnection;
|
||||
|
||||
|
||||
//@description Describes a color to highlight a bot added to attachment menu @light_color Color in the RGB24 format for light themes @dark_color Color in the RGB24 format for dark themes
|
||||
|
@ -90,9 +90,12 @@ struct BusinessConnectionManager::BusinessConnection {
|
||||
}
|
||||
|
||||
td_api::object_ptr<td_api::businessConnection> get_business_connection_object(Td *td) const {
|
||||
DialogId user_dialog_id(user_id_);
|
||||
td->dialog_manager_->force_create_dialog(user_dialog_id, "get_business_connection_object");
|
||||
return td_api::make_object<td_api::businessConnection>(
|
||||
connection_id_.get(), td->contacts_manager_->get_user_id_object(user_id_, "businessConnection"),
|
||||
connection_date_, can_reply_, !is_disabled_);
|
||||
td->dialog_manager_->get_chat_id_object(user_dialog_id, "businessConnection"), connection_date_, can_reply_,
|
||||
!is_disabled_);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user