Exemple #1
0
        /// <inheritdoc />
        public UploadServerInfo GetMessagesUploadServer(long?peerId = null, DocMessageType type = null)
        {
            var parameters = new VkParameters
            {
                { "peer_id", peerId },
                { "type", type }
            };

            return(_vk.Call("docs.getMessagesUploadServer", parameters));
        }
Exemple #2
0
 /// <inheritdoc />
 public Task <UploadServerInfo> GetMessagesUploadServerAsync(long?peerId = null, DocMessageType type = null)
 {
     return(TypeHelper.TryInvokeMethodAsync(func: () => _vk.Docs.GetMessagesUploadServer(peerId: peerId, type: type)));
 }