예제 #1
0
        public async Task <bool> SendTypingAsync(IInputPeer peer)
        {
            var req = new RequestSetTyping
            {
                Action = new TSendMessageTypingAction(),
                Peer   = peer
            };

            return(await SenderService.SendRequestAsync(req).ConfigureAwait(false));
        }
예제 #2
0
        /// <inheritdoc />
        public async Task <bool> SendTypingAsync(IInputPeer peer, CancellationToken cancellationToken = default(CancellationToken))
        {
            var req = new RequestSetTyping
            {
                Action = new TSendMessageTypingAction(),
                Peer   = peer
            };

            return(await RequestSender.SendRequestAsync(req, cancellationToken).ConfigureAwait(false));
        }