"Fossies" - the Fresh Open Source Software Archive

Member "tdesktop-2.6.1/Telegram/SourceFiles/api/api_sending.h" (24 Feb 2021, 892 Bytes) of package /linux/misc/tdesktop-2.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "api_sending.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 This file is part of Telegram Desktop,
    3 the official desktop application for the Telegram messaging service.
    4 
    5 For license and copyright information please follow this link:
    6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
    7 */
    8 #pragma once
    9 
   10 class History;
   11 class PhotoData;
   12 class DocumentData;
   13 struct FileLoadResult;
   14 
   15 namespace Api {
   16 
   17 struct MessageToSend;
   18 struct SendAction;
   19 
   20 void SendExistingDocument(
   21     Api::MessageToSend &&message,
   22     not_null<DocumentData*> document);
   23 
   24 void SendExistingPhoto(
   25     Api::MessageToSend &&message,
   26     not_null<PhotoData*> photo);
   27 
   28 bool SendDice(Api::MessageToSend &message);
   29 
   30 void FillMessagePostFlags(
   31     const SendAction &action,
   32     not_null<PeerData*> peer,
   33     MTPDmessage::Flags &flags);
   34 
   35 void SendConfirmedFile(
   36     not_null<Main::Session*> session,
   37     const std::shared_ptr<FileLoadResult> &file,
   38     const std::optional<FullMsgId> &oldId);
   39 
   40 } // namespace Api