Searched refs:input_photo (Results 1 – 9 of 9) sorted by relevance
/dports/net-im/tdlib/td-a53cb30e99f937cfd64e0266fa558785a184a553/td/telegram/ |
H A D | MessageContent.cpp | 1710 auto input_photo = static_cast<td_api::inputMessagePhoto *>(input_message_content.get()); in create_input_message_content() local 1712 if (input_photo->width_ < 0 || input_photo->width_ > 10000) { in create_input_message_content() 1715 if (input_photo->height_ < 0 || input_photo->height_ > 10000) { in create_input_message_content() 1718 ttl = input_photo->ttl_; in create_input_message_content() 1741 s.dimensions = get_dimensions(input_photo->width_, input_photo->height_, "inputMessagePhoto"); in create_input_message_content()
|
H A D | ContactsManager.cpp | 448 …d send(FileId file_id, int64 old_photo_id, tl_object_ptr<telegram_api::InputPhoto> &&input_photo) { in send() argument 449 CHECK(input_photo != nullptr); in send() 452 file_reference_ = FileManager::extract_file_reference(input_photo); in send() 453 …(G()->net_query_creator().create(telegram_api::photos_updateProfilePhoto(std::move(input_photo)))); in send() 6054 …d ContactsManager::set_profile_photo(const td_api::object_ptr<td_api::InputChatPhoto> &input_photo, in set_profile_photo() argument 6056 if (input_photo == nullptr) { in set_profile_photo() 6063 switch (input_photo->get_id()) { in set_profile_photo() 6065 auto photo = static_cast<const td_api::inputChatPhotoPrevious *>(input_photo.get()); in set_profile_photo() 6079 auto photo = static_cast<const td_api::inputChatPhotoStatic *>(input_photo.get()); in set_profile_photo() 6084 auto photo = static_cast<const td_api::inputChatPhotoAnimation *>(input_photo.get()); in set_profile_photo()
|
H A D | MessageEntity.cpp | 4053 auto input_photo = static_cast<td_api::inputMessagePhoto *>(input_message_content.get()); in extract_input_caption() local 4054 return std::move(input_photo->caption_); in extract_input_caption()
|
H A D | ContactsManager.h | 314 …void set_profile_photo(const td_api::object_ptr<td_api::InputChatPhoto> &input_photo, Promise<Unit…
|
H A D | StickersManager.cpp | 5253 auto input_photo = file_view.main_remote_location().as_input_photo(); in send_get_attached_stickers_query() local 5254 file_reference = input_photo->file_reference_.as_slice().str(); in send_get_attached_stickers_query() 5255 …t_stickered_media = make_tl_object<telegram_api::inputStickeredMediaPhoto>(std::move(input_photo)); in send_get_attached_stickers_query()
|
H A D | MessagesManager.cpp | 4494 …oid send(DialogId dialog_id, FileId file_id, tl_object_ptr<telegram_api::InputPhoto> &&input_photo, in send() argument 4498 file_reference_ = FileManager::extract_file_reference(input_photo); in send() 4505 std::move(input_peer), std::move(input_photo), report_reason_.get_input_report_reason(), in send() 8789 auto input_photo = file_view.main_remote_location().as_input_photo(); in on_upload_dialog_photo() local 8790 auto input_chat_photo = make_tl_object<telegram_api::inputChatPhoto>(std::move(input_photo)); in on_upload_dialog_photo() 31931 …ger::set_dialog_photo(DialogId dialog_id, const tl_object_ptr<td_api::InputChatPhoto> &input_photo, in set_dialog_photo() argument 31968 if (input_photo != nullptr) { in set_dialog_photo() 31969 switch (input_photo->get_id()) { in set_dialog_photo() 31971 auto photo = static_cast<const td_api::inputChatPhotoPrevious *>(input_photo.get()); in set_dialog_photo() 31984 auto photo = static_cast<const td_api::inputChatPhotoStatic *>(input_photo.get()); in set_dialog_photo() [all …]
|
H A D | MessagesManager.h | 499 …void set_dialog_photo(DialogId dialog_id, const tl_object_ptr<td_api::InputChatPhoto> &input_photo,
|
/dports/net-im/tdlib/td-a53cb30e99f937cfd64e0266fa558785a184a553/td/telegram/files/ |
H A D | FileManager.h | 490 static string extract_file_reference(const tl_object_ptr<telegram_api::InputPhoto> &input_photo);
|
H A D | FileManager.cpp | 3321 …g FileManager::extract_file_reference(const tl_object_ptr<telegram_api::InputPhoto> &input_photo) { in extract_file_reference() argument 3322 if (input_photo == nullptr || input_photo->get_id() != telegram_api::inputPhoto::ID) { in extract_file_reference() 3326 …return static_cast<const telegram_api::inputPhoto *>(input_photo.get())->file_reference_.as_slice(… in extract_file_reference()
|