示例#1
0
        public void ReadMessageContentsAsync(TLInputChannelBase channel, TLVector <TLInt> id, Action <TLBool> callback, Action <TLRPCError> faultCallback = null)
        {
            var obj = new TLReadMessageContents {
                Channel = channel, Id = id
            };

            const string caption = "channels.readMessageContents";

            ReadMessageContentsAsyncInternal(obj,
                                             result =>
            {
                callback.SafeInvoke(result);
            },
                                             () => { },
                                             faultCallback.SafeInvoke);
        }
示例#2
0
 private void ReadMessageContentsAsyncInternal(TLReadMessageContents message, Action <TLAffectedMessages> callback, Action fastCallback, Action <TLRPCError> faultCallback)
 {
     SendAsyncInternal("messages.readMessageContents", int.MaxValue, message, callback, fastCallback, faultCallback);
 }