Improve documentation.

This commit is contained in:
levlam 2024-03-30 14:04:25 +03:00
parent 0a21620194
commit 7266a0e3b8
2 changed files with 3 additions and 3 deletions

View File

@ -5977,7 +5977,7 @@ internalLinkTypeMessage url:string = InternalLinkType;
internalLinkTypeMessageDraft text:formattedText contains_link:Bool = InternalLinkType; internalLinkTypeMessageDraft text:formattedText contains_link:Bool = InternalLinkType;
//@description The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it //@description The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it
//@bot_user_id User identifier of the service's bot //@bot_user_id User identifier of the service's bot; the corresponding user may be unknown yet
//@scope Telegram Passport element types requested by the service //@scope Telegram Passport element types requested by the service
//@public_key Service's public key //@public_key Service's public key
//@nonce Unique request identifier provided by the service //@nonce Unique request identifier provided by the service

View File

@ -2140,7 +2140,6 @@ void InlineQueriesManager::on_new_query(int64 query_id, UserId sender_user_id, L
LOG(ERROR) << "Receive new inline query from invalid " << sender_user_id; LOG(ERROR) << "Receive new inline query from invalid " << sender_user_id;
return; return;
} }
LOG_IF(ERROR, !td_->contacts_manager_->have_user(sender_user_id)) << "Receive unknown " << sender_user_id;
if (!td_->auth_manager_->is_bot()) { if (!td_->auth_manager_->is_bot()) {
LOG(ERROR) << "Receive new inline query"; LOG(ERROR) << "Receive new inline query";
return; return;
@ -2152,7 +2151,8 @@ void InlineQueriesManager::on_new_query(int64 query_id, UserId sender_user_id, L
switch (peer_type->get_id()) { switch (peer_type->get_id()) {
case telegram_api::inlineQueryPeerTypeSameBotPM::ID: case telegram_api::inlineQueryPeerTypeSameBotPM::ID:
return td_api::make_object<td_api::chatTypePrivate>(sender_user_id.get()); return td_api::make_object<td_api::chatTypePrivate>(
td_->contacts_manager_->get_user_id_object(sender_user_id, "inlineQueryPeerTypeSameBotPM"));
case telegram_api::inlineQueryPeerTypeBotPM::ID: case telegram_api::inlineQueryPeerTypeBotPM::ID:
case telegram_api::inlineQueryPeerTypePM::ID: case telegram_api::inlineQueryPeerTypePM::ID:
return td_api::make_object<td_api::chatTypePrivate>(0); return td_api::make_object<td_api::chatTypePrivate>(0);