Improve documentation.
This commit is contained in:
parent
0a21620194
commit
7266a0e3b8
@ -5977,7 +5977,7 @@ internalLinkTypeMessage url:string = 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
|
||||
//@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
|
||||
//@public_key Service's public key
|
||||
//@nonce Unique request identifier provided by the service
|
||||
|
@ -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;
|
||||
return;
|
||||
}
|
||||
LOG_IF(ERROR, !td_->contacts_manager_->have_user(sender_user_id)) << "Receive unknown " << sender_user_id;
|
||||
if (!td_->auth_manager_->is_bot()) {
|
||||
LOG(ERROR) << "Receive new inline query";
|
||||
return;
|
||||
@ -2152,7 +2151,8 @@ void InlineQueriesManager::on_new_query(int64 query_id, UserId sender_user_id, L
|
||||
|
||||
switch (peer_type->get_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::inlineQueryPeerTypePM::ID:
|
||||
return td_api::make_object<td_api::chatTypePrivate>(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user