Exemplo n.º 1
0
        public async Task <bool> SetTypingActionAsync(Models.Contact contact)
        {
            await ConnectAsync();

            InputPeer peer = null;

            if (contact.IsForeign)
            {
                peer = new InputPeerForeignConstructor(contact.Id, contact.AccessHash);
            }
            else
            {
                peer = new InputPeerContactConstructor(contact.Id);
            }
            return(await _client.SetTyping(peer, SendMessageAction.TypingAction));
        }